Show More
@@ -2020,12 +2020,12 b' class localrepository(repo.repository):' | |||||
2020 | trp = weakref.proxy(tr) |
|
2020 | trp = weakref.proxy(tr) | |
2021 | # pull off the changeset group |
|
2021 | # pull off the changeset group | |
2022 | self.ui.status(_("adding changesets\n")) |
|
2022 | self.ui.status(_("adding changesets\n")) | |
2023 |
c |
|
2023 | clstart = len(cl) | |
2024 | chunkiter = changegroup.chunkiter(source) |
|
2024 | chunkiter = changegroup.chunkiter(source) | |
2025 | if cl.addgroup(chunkiter, csmap, trp) is None and not emptyok: |
|
2025 | if cl.addgroup(chunkiter, csmap, trp) is None and not emptyok: | |
2026 | raise util.Abort(_("received changelog group is empty")) |
|
2026 | raise util.Abort(_("received changelog group is empty")) | |
2027 |
c |
|
2027 | clend = len(cl) | |
2028 |
changesets = c |
|
2028 | changesets = clend - clstart | |
2029 |
|
2029 | |||
2030 | # pull off the manifest group |
|
2030 | # pull off the manifest group | |
2031 | self.ui.status(_("adding manifests\n")) |
|
2031 | self.ui.status(_("adding manifests\n")) | |
@@ -2063,7 +2063,7 b' class localrepository(repo.repository):' | |||||
2063 | if changesets > 0: |
|
2063 | if changesets > 0: | |
2064 | p = lambda: cl.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(cl.node(c |
|
2066 | node=hex(cl.node(clstart)), 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,10 +2077,10 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(cl.node(c |
|
2080 | self.hook("changegroup", node=hex(cl.node(clstart)), | |
2081 | source=srctype, url=url) |
|
2081 | source=srctype, url=url) | |
2082 |
|
2082 | |||
2083 |
for i in xrange(c |
|
2083 | for i in xrange(clstart, clend): | |
2084 | self.hook("incoming", node=hex(cl.node(i)), |
|
2084 | self.hook("incoming", node=hex(cl.node(i)), | |
2085 | source=srctype, url=url) |
|
2085 | source=srctype, url=url) | |
2086 |
|
2086 |
General Comments 0
You need to be logged in to leave comments.
Login now