Mercurial > hg-stable
changeset 5225:76c4cadb49fc
clone: remove "file://" before making the path absolute
This avoids writing bogus paths to .hgrc. Fixes issue695.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 27 Aug 2007 01:44:35 -0300 |
parents | 20817af258d8 |
children | 438ff951df70 |
files | mercurial/hg.py tests/test-clone tests/test-clone.out |
diffstat | 3 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Mon Aug 27 01:44:35 2007 -0300 +++ b/mercurial/hg.py Mon Aug 27 01:44:35 2007 -0300 @@ -141,7 +141,7 @@ abspath = origsource copy = False if src_repo.local() and islocal(dest): - abspath = os.path.abspath(origsource) + abspath = os.path.abspath(util.drop_scheme('file', origsource)) copy = not pull and not rev src_lock, dest_lock = None, None