##// END OF EJS Templates
clone: remove "file://" before making the path absolute...
Alexis S. L. Carvalho -
r5225:76c4cadb default
parent child Browse files
Show More
@@ -141,7 +141,7 b' def clone(ui, source, dest=None, pull=Fa'
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
@@ -25,3 +25,11 b' cd ../d'
25 hg clone ../a
25 hg clone ../a
26 cd a
26 cd a
27 hg cat a
27 hg cat a
28
29 # check that we drop the file:// from the path before
30 # writing the .hgrc
31 cd ../..
32 hg clone file://a e
33 grep 'file:' e/.hg/hgrc
34
35 exit 0
@@ -14,3 +14,4 b' 1 files, 1 changesets, 1 total revisions'
14 destination directory: a
14 destination directory: a
15 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
15 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
16 a
16 a
17 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now