Show More
@@ -312,6 +312,7 b' class cg1unpacker(object):' | |||
|
312 | 312 | - number of heads stays the same: 1 |
|
313 | 313 | """ |
|
314 | 314 | repo = repo.unfiltered() |
|
315 | wasempty = (len(repo.changelog) == 0) | |
|
315 | 316 | def csmap(x): |
|
316 | 317 | repo.ui.debug("add changeset %s\n" % short(x)) |
|
317 | 318 | return len(cl) |
@@ -386,7 +387,7 b' class cg1unpacker(object):' | |||
|
386 | 387 | self.callback = None |
|
387 | 388 | pr = prog(_('files'), efiles) |
|
388 | 389 | newrevs, newfiles = _addchangegroupfiles( |
|
389 | repo, self, revmap, trp, pr, needfiles) | |
|
390 | repo, self, revmap, trp, pr, needfiles, wasempty) | |
|
390 | 391 | revisions += newrevs |
|
391 | 392 | files += newfiles |
|
392 | 393 | |
@@ -903,7 +904,7 b' def changegroup(repo, basenodes, source)' | |||
|
903 | 904 | # to avoid a race we use changegroupsubset() (issue1320) |
|
904 | 905 | return changegroupsubset(repo, basenodes, repo.heads(), source) |
|
905 | 906 | |
|
906 | def _addchangegroupfiles(repo, source, revmap, trp, pr, needfiles): | |
|
907 | def _addchangegroupfiles(repo, source, revmap, trp, pr, needfiles, wasempty): | |
|
907 | 908 | revisions = 0 |
|
908 | 909 | files = 0 |
|
909 | 910 | while True: |
General Comments 0
You need to be logged in to leave comments.
Login now