changeset 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 afd7c4ec000f
children e9a0ed9ed4d9
files mercurial/util.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Thu May 11 18:24:58 2006 -0700
+++ b/mercurial/util.py	Thu May 11 21:55:15 2006 -0700
@@ -205,6 +205,8 @@
     """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