comparison mercurial/hg.py @ 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 fe55e3d6dc0b
children aea35488ea66 5517aa5aafb0
comparison
equal deleted inserted replaced
5224:20817af258d8 5225:76c4cadb49fc
139 dir_cleanup = DirCleanup(dest) 139 dir_cleanup = DirCleanup(dest)
140 140
141 abspath = origsource 141 abspath = origsource
142 copy = False 142 copy = False
143 if src_repo.local() and islocal(dest): 143 if src_repo.local() and islocal(dest):
144 abspath = os.path.abspath(origsource) 144 abspath = os.path.abspath(util.drop_scheme('file', origsource))
145 copy = not pull and not rev 145 copy = not pull and not rev
146 146
147 src_lock, dest_lock = None, None 147 src_lock, dest_lock = None, None
148 if copy: 148 if copy:
149 try: 149 try: