mozext: don't load pushlog twice (
bug 1242653); r?dminor
5410683439c5 added pushlog fetching elsewhere in this file. The
code removed in this patch was redundantly fetching the pushlog data
from the JSON HTTP API after it had already been fetched.
--- a/hgext/mozext/__init__.py
+++ b/hgext/mozext/__init__.py
@@ -794,18 +794,16 @@ def pull(orig, repo, remote, *args, **kw
old_rev = len(repo)
res = orig(repo, remote, *args, **kwargs)
lock = repo.wlock()
try:
tree = resolve_uri_to_tree(remote.url())
if tree:
repo._update_remote_refs(remote, tree)
- if repo.changetracker:
- repo.changetracker.load_pushlog(tree)
# Sync bug info.
for rev in repo.changelog.revs(old_rev + 1):
ctx = repo[rev]
bugs = parse_bugs(ctx.description())
if bugs and repo.changetracker:
repo.changetracker.associate_bugs_with_changeset(bugs,
ctx.node())