copies: remove checkdirs options
authorMatt Mackall <mpm@selenic.com>
Sat, 25 Feb 2012 14:22:58 -0600
changeset 16169 c12d4aceba79
parent 16168 7bbabfe25321
child 16170 ef2373ea3d24
copies: remove checkdirs options This removes the undocumented merge.followdirs option, which has always been true.
mercurial/copies.py
mercurial/merge.py
--- a/mercurial/copies.py	Fri Feb 24 18:21:06 2012 -0600
+++ b/mercurial/copies.py	Sat Feb 25 14:22:58 2012 -0600
@@ -174,7 +174,7 @@
         return _backwardcopies(x, y)
     return _chain(x, y, _backwardcopies(x, a), _forwardcopies(a, y))
 
-def mergecopies(repo, c1, c2, ca, checkdirs=True):
+def mergecopies(repo, c1, c2, ca):
     """
     Find moves and copies between context c1 and c2 that are relevant
     for merging.
@@ -310,7 +310,7 @@
             repo.ui.debug("   %s -> %s %s\n" % (f, fullcopy[f], note))
     del diverge2
 
-    if not fullcopy or not checkdirs:
+    if not fullcopy:
         return copy, diverge
 
     repo.ui.debug("  checking for directory renames\n")
--- a/mercurial/merge.py	Fri Feb 24 18:21:06 2012 -0600
+++ b/mercurial/merge.py	Sat Feb 25 14:22:58 2012 -0600
@@ -188,8 +188,7 @@
     elif pa == p2: # backwards
         pa = p1.p1()
     elif pa and repo.ui.configbool("merge", "followcopies", True):
-        dirs = repo.ui.configbool("merge", "followdirs", True)
-        copy, diverge = copies.mergecopies(repo, p1, p2, pa, dirs)
+        copy, diverge = copies.mergecopies(repo, p1, p2, pa)
         for of, fl in diverge.iteritems():
             act("divergent renames", "dr", of, fl)