# HG changeset patch # User Vadim Gelfer # Date 1145462925 25200 # Node ID eb40db3737171dddb00a69b953cb4b46f5ce9da6 # Parent cb99c711c59f1a1e63a66fcde43906421c1740bb fix util.canonpath on windows. old test for absolute path was not portable. use os.path api instead. diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -201,7 +201,7 @@ def canonpath(root, cwd, myname): else: rootsep = root + os.sep name = myname - if not name.startswith(os.sep): + if not os.path.isabs(name): name = os.path.join(root, cwd, name) name = os.path.normpath(name) if name.startswith(rootsep):