diff mercurial/util.py @ 2271:90b122730d32

Make it possible to use the root directory as the root of a repository.
author Manpreet Singh <junkblocker@yahoo.com>
date Thu, 11 May 2006 21:55:15 -0700
parents 2f64cbaa1e92
children 3711e23ab10a
line wrap: on
line diff
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -205,6 +205,8 @@ def canonpath(root, cwd, myname):
     """return the canonical path of myname, given cwd and root"""
     if root == os.sep:
         rootsep = os.sep
+    elif root.endswith(os.sep):
+        rootsep = root
     else:
         rootsep = root + os.sep
     name = myname