diff mercurial/copies.py @ 18899:d8ff607ef721

scmutil: use new dirs class in dirstate and context The multiset-of-directories code was open coded in each of these modules; this change gets rid of the duplication.
author Bryan O'Sullivan <bryano@fb.com>
date Wed, 10 Apr 2013 15:08:26 -0700
parents 3cfaace0441e
children 4327687ca757
line wrap: on
line diff
--- a/mercurial/copies.py	Wed Apr 10 15:08:26 2013 -0700
+++ b/mercurial/copies.py	Wed Apr 10 15:08:26 2013 -0700
@@ -335,8 +335,8 @@
 
     # generate a directory move map
     d1, d2 = c1.dirs(), c2.dirs()
-    d1.add('')
-    d2.add('')
+    d1.addpath('/')
+    d2.addpath('/')
     invalid = set()
     dirmove = {}