Show More
@@ -521,7 +521,7 b' def _filternarrowactions(narrowmatch, br' | |||||
521 | """ |
|
521 | """ | |
522 | # We mutate the items in the dict during iteration, so iterate |
|
522 | # We mutate the items in the dict during iteration, so iterate | |
523 | # over a copy. |
|
523 | # over a copy. | |
524 | for f, action in mresult.filemap(): |
|
524 | for f, action in list(mresult.filemap()): | |
525 | if narrowmatch(f): |
|
525 | if narrowmatch(f): | |
526 | pass |
|
526 | pass | |
527 | elif not branchmerge: |
|
527 | elif not branchmerge: | |
@@ -662,7 +662,7 b' class mergeresult:' | |||||
662 | return sum(len(self._actionmapping[a]) for a in actions) |
|
662 | return sum(len(self._actionmapping[a]) for a in actions) | |
663 |
|
663 | |||
664 | def filemap(self, sort=False): |
|
664 | def filemap(self, sort=False): | |
665 |
if sort |
|
665 | if sort: | |
666 | for key, val in sorted(self._filemapping.items()): |
|
666 | for key, val in sorted(self._filemapping.items()): | |
667 | yield key, val |
|
667 | yield key, val | |
668 | else: |
|
668 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now