# HG changeset patch # User Manpreet Singh # Date 2006-05-12 04:55:15 # Node ID 90b122730d323922458ceb97d286f794d76670cb # Parent afd7c4ec000fac1683af8b585ce20a4d83e612fb Make it possible to use the root directory as the root of a repository. diff --git a/mercurial/util.py b/mercurial/util.py --- 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