D6404: copies: remove hack for adding root dir to util.dirs object

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon May 20 11:47:46 EDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc361db7a5f14: copies: remove hack for adding root dir to util.dirs object (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6404?vs=15176&id=15196

REVISION DETAIL
  https://phab.mercurial-scm.org/D6404

AFFECTED FILES
  mercurial/copies.py

CHANGE DETAILS

diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -588,9 +588,6 @@
 
     # generate a directory move map
     d1, d2 = c1.dirs(), c2.dirs()
-    # Hack for adding '', which is not otherwise added, to d1 and d2
-    d1.addpath('/')
-    d2.addpath('/')
     invalid = set()
     dirmove = {}
 



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list