Show More
@@ -246,7 +246,7 b' class cg1unpacker(object):' | |||
|
246 | 246 | self.manifestheader() |
|
247 | 247 | deltas = self.deltaiter() |
|
248 | 248 | repo.manifestlog._revlog.addgroup(deltas, revmap, trp) |
|
249 |
prog. |
|
|
249 | prog.complete() | |
|
250 | 250 | self.callback = None |
|
251 | 251 | |
|
252 | 252 | def apply(self, repo, tr, srctype, url, targetphase=phases.draft, |
@@ -309,7 +309,7 b' class cg1unpacker(object):' | |||
|
309 | 309 | config='warn-empty-changegroup') |
|
310 | 310 | clend = len(cl) |
|
311 | 311 | changesets = clend - clstart |
|
312 |
progress. |
|
|
312 | progress.complete() | |
|
313 | 313 | self.callback = None |
|
314 | 314 | |
|
315 | 315 | # pull off the manifest group |
@@ -2195,7 +2195,7 b' def remove(ui, repo, m, prefix, after, f' | |||
|
2195 | 2195 | except error.LookupError: |
|
2196 | 2196 | warnings.append(_("skipping missing subrepository: %s\n") |
|
2197 | 2197 | % join(subpath)) |
|
2198 |
progress. |
|
|
2198 | progress.complete() | |
|
2199 | 2199 | |
|
2200 | 2200 | # warn about failure to delete explicit files/dirs |
|
2201 | 2201 | deleteddirs = util.dirs(deleted) |
@@ -2224,7 +2224,7 b' def remove(ui, repo, m, prefix, after, f' | |||
|
2224 | 2224 | % m.rel(f)) |
|
2225 | 2225 | # missing files will generate a warning elsewhere |
|
2226 | 2226 | ret = 1 |
|
2227 |
progress. |
|
|
2227 | progress.complete() | |
|
2228 | 2228 | |
|
2229 | 2229 | if force: |
|
2230 | 2230 | list = modified + deleted + clean + added |
@@ -2239,7 +2239,7 b' def remove(ui, repo, m, prefix, after, f' | |||
|
2239 | 2239 | warnings.append(_('not removing %s: file still exists\n') |
|
2240 | 2240 | % m.rel(f)) |
|
2241 | 2241 | ret = 1 |
|
2242 |
progress. |
|
|
2242 | progress.complete() | |
|
2243 | 2243 | else: |
|
2244 | 2244 | list = deleted + clean |
|
2245 | 2245 | progress = ui.makeprogress(_('skipping'), |
@@ -2255,7 +2255,7 b' def remove(ui, repo, m, prefix, after, f' | |||
|
2255 | 2255 | warnings.append(_("not removing %s: file has been marked for add" |
|
2256 | 2256 | " (use 'hg forget' to undo add)\n") % m.rel(f)) |
|
2257 | 2257 | ret = 1 |
|
2258 |
progress. |
|
|
2258 | progress.complete() | |
|
2259 | 2259 | |
|
2260 | 2260 | list = sorted(list) |
|
2261 | 2261 | progress = ui.makeprogress(_('deleting'), total=len(list), |
@@ -2264,7 +2264,7 b' def remove(ui, repo, m, prefix, after, f' | |||
|
2264 | 2264 | if ui.verbose or not m.exact(f): |
|
2265 | 2265 | progress.increment() |
|
2266 | 2266 | ui.status(_('removing %s\n') % m.rel(f)) |
|
2267 |
progress. |
|
|
2267 | progress.complete() | |
|
2268 | 2268 | |
|
2269 | 2269 | if not dryrun: |
|
2270 | 2270 | with repo.wlock(): |
@@ -1785,7 +1785,7 b' def applyupdates(repo, actions, wctx, mc' | |||
|
1785 | 1785 | actions[ACTION_MERGE] = [a for a in actions[ACTION_MERGE] |
|
1786 | 1786 | if a[0] in mfiles] |
|
1787 | 1787 | |
|
1788 |
progress. |
|
|
1788 | progress.complete() | |
|
1789 | 1789 | return updateresult(updated, merged, removed, unresolved) |
|
1790 | 1790 | |
|
1791 | 1791 | def recordupdates(repo, actions, branchmerge): |
@@ -1302,6 +1302,9 b' class progress(object):' | |||
|
1302 | 1302 | def increment(self, step=1, item="", total=None): |
|
1303 | 1303 | self.update(self.pos + step, item, total) |
|
1304 | 1304 | |
|
1305 | def complete(self): | |
|
1306 | self.update(None) | |
|
1307 | ||
|
1305 | 1308 | def _print(self, item): |
|
1306 | 1309 | self.ui.progress(self.topic, self.pos, item, self.unit, |
|
1307 | 1310 | self.total) |
@@ -252,7 +252,7 b' def findcommonheads(ui, local, remote,' | |||
|
252 | 252 | # return any heads in that case, so discard that |
|
253 | 253 | result.discard(nullrev) |
|
254 | 254 | elapsed = util.timer() - start |
|
255 |
progress. |
|
|
255 | progress.complete() | |
|
256 | 256 | ui.debug("%d total queries in %.4fs\n" % (roundtrips, elapsed)) |
|
257 | 257 | msg = ('found %d common and %d unknown server heads,' |
|
258 | 258 | ' %d roundtrips in %.4fs\n') |
@@ -44,7 +44,7 b' def _findexactmatches(repo, added, remov' | |||
|
44 | 44 | break |
|
45 | 45 | |
|
46 | 46 | # Done |
|
47 |
progress. |
|
|
47 | progress.complete() | |
|
48 | 48 | |
|
49 | 49 | def _ctxdata(fctx): |
|
50 | 50 | # lazily load text |
@@ -321,7 +321,7 b" def generatebundlev1(repo, compression='" | |||
|
321 | 321 | progress.increment(step=len(chunk)) |
|
322 | 322 | yield chunk |
|
323 | 323 | |
|
324 |
progress. |
|
|
324 | progress.complete() | |
|
325 | 325 | |
|
326 | 326 | return requirements, gen() |
|
327 | 327 | |
@@ -384,7 +384,7 b' def consumev1(repo, fp, filecount, bytec' | |||
|
384 | 384 | elapsed = util.timer() - start |
|
385 | 385 | if elapsed <= 0: |
|
386 | 386 | elapsed = 0.001 |
|
387 |
progress. |
|
|
387 | progress.complete() | |
|
388 | 388 | repo.ui.status(_('transferred %s in %.1f seconds (%s/sec)\n') % |
|
389 | 389 | (util.bytecount(bytecount), elapsed, |
|
390 | 390 | util.bytecount(bytecount / elapsed))) |
@@ -526,7 +526,7 b' def _emit2(repo, entries, totalfilesize)' | |||
|
526 | 526 | finally: |
|
527 | 527 | fp.close() |
|
528 | 528 | finally: |
|
529 |
progress. |
|
|
529 | progress.complete() | |
|
530 | 530 | |
|
531 | 531 | def generatev2(repo): |
|
532 | 532 | """Emit content for version 2 of a streaming clone. |
@@ -624,7 +624,7 b' def consumev2(repo, fp, filecount, files' | |||
|
624 | 624 | repo.ui.status(_('transferred %s in %.1f seconds (%s/sec)\n') % |
|
625 | 625 | (util.bytecount(progress.pos), elapsed, |
|
626 | 626 | util.bytecount(progress.pos / elapsed))) |
|
627 |
progress. |
|
|
627 | progress.complete() | |
|
628 | 628 | |
|
629 | 629 | def applybundlev2(repo, fp, filecount, filesize, requirements): |
|
630 | 630 | missingreqs = [r for r in requirements if r not in repo.supported] |
General Comments 0
You need to be logged in to leave comments.
Login now