merge: remove obsolete check for untracked files in 'dm' action
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 24 Nov 2014 09:50:27 -0800
changeset 23387 3eb99f8e9a62
parent 23386 8229f32d2b79
child 23388 42ed0780ec4b
merge: remove obsolete check for untracked files in 'dm' action Since 0776a6cababe (merge: don't use unknown(), 2012-02-09), untracked files are no longer included in the manifest diff, so there is no need to check exclude them when renaming files for directory moves with the 'dm' action.
mercurial/merge.py
--- a/mercurial/merge.py	Sun Nov 23 23:10:34 2014 -0800
+++ b/mercurial/merge.py	Mon Nov 24 09:50:27 2014 -0800
@@ -896,9 +896,6 @@
     # directory rename, move local
     for f, args, msg in actions['dm']:
         f0, flag = args
-        if f0 not in repo.dirstate:
-            # untracked file moved
-            continue
         if branchmerge:
             repo.dirstate.add(f)
             repo.dirstate.remove(f0)