Mercurial > hg
changeset 2090:eb40db373717
fix util.canonpath on windows.
old test for absolute path was not portable. use os.path api instead.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Wed, 19 Apr 2006 09:08:45 -0700 |
parents | cb99c711c59f |
children | fb8b35b0def9 |
files | mercurial/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Wed Apr 19 08:33:46 2006 -0700 +++ b/mercurial/util.py Wed Apr 19 09:08:45 2006 -0700 @@ -201,7 +201,7 @@ 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):