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

login
register
mail settings
Submitter phabricator
Date May 17, 2019, 5:57 p.m.
Message ID <differential-rev-PHID-DREV-27bv2ndsf6i5hcomfv5v-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/40122/
State Superseded
Headers show

Comments

phabricator - May 17, 2019, 5:57 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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