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

login
register
mail settings
Submitter phabricator
Date May 20, 2019, 3:47 p.m.
Message ID <c7e8b49f84fe68dcb9b20a15c60bf93f@localhost.localdomain>
Download mbox | patch
Permalink /patch/40152/
State Not Applicable
Headers show

Comments

phabricator - May 20, 2019, 3:47 p.m.
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




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

Patch

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 = {}