##// END OF EJS Templates
changegroup: use progress helper...
Martin von Zweigbergk -
r38401:daa08d45 default
parent child Browse files
Show More
@@ -975,12 +975,13 b' def makestream(repo, outgoing, version, '
975 def _addchangegroupfiles(repo, source, revmap, trp, expectedfiles, needfiles):
975 def _addchangegroupfiles(repo, source, revmap, trp, expectedfiles, needfiles):
976 revisions = 0
976 revisions = 0
977 files = 0
977 files = 0
978 progress = repo.ui.makeprogress(_('files'), unit=_('files'),
979 total=expectedfiles)
978 for chunkdata in iter(source.filelogheader, {}):
980 for chunkdata in iter(source.filelogheader, {}):
979 files += 1
981 files += 1
980 f = chunkdata["filename"]
982 f = chunkdata["filename"]
981 repo.ui.debug("adding %s revisions\n" % f)
983 repo.ui.debug("adding %s revisions\n" % f)
982 repo.ui.progress(_('files'), files, unit=_('files'),
984 progress.increment()
983 total=expectedfiles)
984 fl = repo.file(f)
985 fl = repo.file(f)
985 o = len(fl)
986 o = len(fl)
986 try:
987 try:
@@ -1001,7 +1002,7 b' def _addchangegroupfiles(repo, source, r'
1001 _("received spurious file revlog entry"))
1002 _("received spurious file revlog entry"))
1002 if not needs:
1003 if not needs:
1003 del needfiles[f]
1004 del needfiles[f]
1004 repo.ui.progress(_('files'), None)
1005 progress.complete()
1005
1006
1006 for f, needs in needfiles.iteritems():
1007 for f, needs in needfiles.iteritems():
1007 fl = repo.file(f)
1008 fl = repo.file(f)
General Comments 0
You need to be logged in to leave comments. Login now