Show More
@@ -227,10 +227,17 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 = [] |
|
231 | for n in itertools.chain(outgoing.missing, outgoing.excluded): | |
|
232 | if any(oldmatch(f) and not newmatch(f) for f in unfi[n].files()): | |
|
233 |
|
|
|
236 | with progress: | |
|
237 | for n in itertools.chain(outgoing.missing, outgoing.excluded): | |
|
238 | progress.increment() | |
|
239 | if any(oldmatch(f) and not newmatch(f) for f in unfi[n].files()): | |
|
240 | localnodes.append(n) | |
|
234 | 241 | revstostrip = unfi.revs(b'descendants(%ln)', localnodes) |
|
235 | 242 | hiddenrevs = repoview.filterrevs(repo, b'visible') |
|
236 | 243 | visibletostrip = list( |
General Comments 0
You need to be logged in to leave comments.
Login now