##// END OF EJS Templates
narrow: add progress-reporting when looking for local changes in `hg tracked`...
Martin von Zweigbergk -
r47789:1e761c1c default draft
parent child Browse files
Show More
@@ -227,8 +227,15 b' def _narrow('
227 227 unfi = repo.unfiltered()
228 228 outgoing = discovery.findcommonoutgoing(unfi, remote, commoninc=commoninc)
229 229 ui.status(_(b'looking for local changes to affected paths\n'))
230 progress = ui.makeprogress(
231 topic=_(b'changesets'),
232 unit=_(b'changesets'),
233 total=len(outgoing.missing) + len(outgoing.excluded),
234 )
230 235 localnodes = []
236 with progress:
231 237 for n in itertools.chain(outgoing.missing, outgoing.excluded):
238 progress.increment()
232 239 if any(oldmatch(f) and not newmatch(f) for f in unfi[n].files()):
233 240 localnodes.append(n)
234 241 revstostrip = unfi.revs(b'descendants(%ln)', localnodes)
General Comments 0
You need to be logged in to leave comments. Login now