##// END OF EJS Templates
localrepo: use cl throughout in addchangegroup
Peter Arrenbrecht -
r8392:7e5cbb09 default
parent child Browse files
Show More
@@ -2051,7 +2051,7 b' class localrepository(repo.repository):'
2051 revisions += len(fl) - o
2051 revisions += len(fl) - o
2052 files += 1
2052 files += 1
2053
2053
2054 newheads = len(self.changelog.heads())
2054 newheads = len(cl.heads())
2055 heads = ""
2055 heads = ""
2056 if oldheads and newheads != oldheads:
2056 if oldheads and newheads != oldheads:
2057 heads = _(" (%+d heads)") % (newheads - oldheads)
2057 heads = _(" (%+d heads)") % (newheads - oldheads)
@@ -2061,9 +2061,9 b' class localrepository(repo.repository):'
2061 % (changesets, revisions, files, heads))
2061 % (changesets, revisions, files, heads))
2062
2062
2063 if changesets > 0:
2063 if changesets > 0:
2064 p = lambda: self.changelog.writepending() and self.root or ""
2064 p = lambda: cl.writepending() and self.root or ""
2065 self.hook('pretxnchangegroup', throw=True,
2065 self.hook('pretxnchangegroup', throw=True,
2066 node=hex(self.changelog.node(cor+1)), source=srctype,
2066 node=hex(cl.node(cor+1)), source=srctype,
2067 url=url, pending=p)
2067 url=url, pending=p)
2068
2068
2069 # make changelog see real files again
2069 # make changelog see real files again
@@ -2077,11 +2077,11 b' class localrepository(repo.repository):'
2077 # forcefully update the on-disk branch cache
2077 # forcefully update the on-disk branch cache
2078 self.ui.debug(_("updating the branch cache\n"))
2078 self.ui.debug(_("updating the branch cache\n"))
2079 self.branchtags()
2079 self.branchtags()
2080 self.hook("changegroup", node=hex(self.changelog.node(cor+1)),
2080 self.hook("changegroup", node=hex(cl.node(cor+1)),
2081 source=srctype, url=url)
2081 source=srctype, url=url)
2082
2082
2083 for i in xrange(cor + 1, cnr + 1):
2083 for i in xrange(cor + 1, cnr + 1):
2084 self.hook("incoming", node=hex(self.changelog.node(i)),
2084 self.hook("incoming", node=hex(cl.node(i)),
2085 source=srctype, url=url)
2085 source=srctype, url=url)
2086
2086
2087 # never return 0 here:
2087 # never return 0 here:
General Comments 0
You need to be logged in to leave comments. Login now