mercurial/util.py
changeset 2090 eb40db373717
parent 2085 f71e9656524f
child 2096 f5ebe964c6be
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -201,7 +201,7 @@ def canonpath(root, cwd, myname):
     else:
         rootsep = root + os.sep
     name = myname
-    if not name.startswith(os.sep):
+    if not os.path.isabs(name):
         name = os.path.join(root, cwd, name)
     name = os.path.normpath(name)
     if name.startswith(rootsep):