Mercurial > public > mercurial-scm > hg-stable
diff mercurial/merge.py @ 51875:454feddab720
brancing: merge stable into default
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 06 Sep 2024 02:12:19 +0200 |
parents | 278af66e6595 23116aefe786 |
children | f4733654f144 |
line wrap: on
line diff
--- a/mercurial/merge.py Wed Aug 28 23:25:26 2024 +0200 +++ b/mercurial/merge.py Fri Sep 06 02:12:19 2024 +0200 @@ -528,7 +528,7 @@ """ # We mutate the items in the dict during iteration, so iterate # over a copy. - for f, action in mresult.filemap(): + for f, action in list(mresult.filemap()): if narrowmatch(f): pass elif not branchmerge: @@ -669,7 +669,7 @@ return sum(len(self._actionmapping[a]) for a in actions) def filemap(self, sort=False): - if sorted: + if sort: for key, val in sorted(self._filemapping.items()): yield key, val else: