Mercurial > hg
changeset 44198:8ad263c3a358
merge: move initialization of copy dicts to one place
Differential Revision: https://phab.mercurial-scm.org/D7988
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 22 Jan 2020 16:45:56 -0800 |
parents | 17e12938f8e7 |
children | 7f8bdee0034e |
files | mercurial/merge.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/merge.py Fri Jan 24 10:39:55 2020 -0800 +++ b/mercurial/merge.py Wed Jan 22 16:45:56 2020 -0800 @@ -1256,14 +1256,13 @@ if matcher is not None and matcher.always(): matcher = None - copy, movewithdir, diverge, renamedelete, dirmove = {}, {}, {}, {}, {} - # manifests fetched in order are going to be faster, so prime the caches [ x.manifest() for x in sorted(wctx.parents() + [p2, pa], key=scmutil.intrev) ] + copy, movewithdir, diverge, renamedelete, dirmove = {}, {}, {}, {}, {} if followcopies: ret = copies.mergecopies(repo, wctx, p2, pa) copy, movewithdir, diverge, renamedelete, dirmove = ret