# HG changeset patch # User Manpreet Singh # Date 1147586405 25200 # Node ID 3711e23ab10a44d6b694920ece190f4c5e3eae7c # Parent 766c3c85278635260a27600fc235cfc86e10882a Make hg status work for repositories in root directory on windows (issue 228) diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -213,7 +213,7 @@ def canonpath(root, cwd, myname): if not os.path.isabs(name): name = os.path.join(root, cwd, name) name = os.path.normpath(name) - if name.startswith(rootsep): + if name != rootsep and name.startswith(rootsep): name = name[len(rootsep):] audit_path(name) return pconvert(name)