diff 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
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