merge with crew.
authorVadim Gelfer <vadim.gelfer@gmail.com>
Sat, 13 May 2006 23:00:46 -0700
changeset 2279 51bfa0fd3a33
parent 2278 3711e23ab10a (diff)
parent 2277 066d0055e430 (current diff)
child 2280 09ed44225571
child 2281 7761597b5da3
merge with crew.
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -213,7 +213,7 @@ def canonpath(root, cwd, myname):
     if not os.path.isabs(name):
         name = os.path.join(root, cwd, name)
     name = os.path.normpath(name)
-    if name.startswith(rootsep):
+    if name != rootsep and name.startswith(rootsep):
         name = name[len(rootsep):]
         audit_path(name)
         return pconvert(name)