Automatically fetch pushlog info when pulling a tree
authorGregory Szorc <gps@mozilla.com>
Fri, 26 Jul 2013 09:55:44 -0700
changeset 38 abcc32b7505934329ff8d2d2231fd798a73f2b66
parent 37 aa2d2b35b388eb900896352345760bd6574cb007
child 39 280d1ef3b0172a20b0e708c1e265704386879a38
push id21
push usergszorc@mozilla.com
push dateFri, 26 Jul 2013 16:55:44 +0000
Automatically fetch pushlog info when pulling a tree
__init__.py
--- a/__init__.py
+++ b/__init__.py
@@ -604,16 +604,17 @@ def reposetup(ui, repo):
             old_rev = len(self)
             res = orig_pull(remote, *args, **kwargs)
             lock = self.wlock()
             try:
                 tree = resolve_uri_to_tree(remote.url())
 
                 if tree:
                     self._update_remote_refs(remote, tree)
+                    self.changetracker.load_pushlog(tree)
 
                 # Sync bug info.
                 for rev in self.changelog.revs(old_rev + 1):
                     ctx = self[rev]
                     bugs = self._bugs_in_description(ctx.description())
                     if bugs:
                         self.changetracker.associate_bugs_with_changeset(bugs,
                             ctx.node())