Show More
@@ -227,8 +227,15 def _narrow( | |||||
227 | unfi = repo.unfiltered() |
|
227 | unfi = repo.unfiltered() | |
228 | outgoing = discovery.findcommonoutgoing(unfi, remote, commoninc=commoninc) |
|
228 | outgoing = discovery.findcommonoutgoing(unfi, remote, commoninc=commoninc) | |
229 | ui.status(_(b'looking for local changes to affected paths\n')) |
|
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 | localnodes = [] |
|
235 | localnodes = [] | |
|
236 | with progress: | |||
231 | for n in itertools.chain(outgoing.missing, outgoing.excluded): |
|
237 | for n in itertools.chain(outgoing.missing, outgoing.excluded): | |
|
238 | progress.increment() | |||
232 | if any(oldmatch(f) and not newmatch(f) for f in unfi[n].files()): |
|
239 | if any(oldmatch(f) and not newmatch(f) for f in unfi[n].files()): | |
233 | localnodes.append(n) |
|
240 | localnodes.append(n) | |
234 | revstostrip = unfi.revs(b'descendants(%ln)', localnodes) |
|
241 | revstostrip = unfi.revs(b'descendants(%ln)', localnodes) |
General Comments 0
You need to be logged in to leave comments.
Login now