mercurial/util.py
changeset 6111 213ea6eed412
parent 6091 41aa0a37d9be
child 6132 1ee95f7df611
child 6134 7b937b26adf7
--- a/mercurial/util.py	Thu Feb 14 18:08:16 2008 -0200
+++ b/mercurial/util.py	Fri Feb 15 10:38:37 2008 -0200
@@ -335,7 +335,7 @@
         a.pop()
         b.pop()
     b.reverse()
-    return os.sep.join((['..'] * len(a)) + b)
+    return os.sep.join((['..'] * len(a)) + b) or '.'
 
 def canonpath(root, cwd, myname):
     """return the canonical path of myname, given cwd and root"""