Mercurial > hg
changeset 14377:f90d5641c78b
clone: make default path absolute for all local paths
This fixes the default path when cloning local repositories with hg-git, since
hg-git cancopy() is false even for local repositories.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 18 May 2011 23:20:26 -0700 |
parents | 17cea10c343e |
children | 1dab7afff11f |
files | mercurial/hg.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Wed May 18 23:48:17 2011 +0200 +++ b/mercurial/hg.py Wed May 18 23:20:26 2011 -0700 @@ -243,13 +243,15 @@ src_lock = dest_lock = dir_cleanup = None try: + abspath = origsource + if islocal(origsource): + abspath = os.path.abspath(util.localpath(origsource)) + if islocal(dest): dir_cleanup = DirCleanup(dest) - abspath = origsource copy = False if src_repo.cancopy() and islocal(dest): - abspath = os.path.abspath(util.localpath(origsource)) copy = not pull and not rev if copy: