##// END OF EJS Templates
convert/subversion: fix default URL checker prototype
Patrick Mezard -
r10885:9e4d120e stable
parent child Browse files
Show More
@@ -178,7 +178,7 b' def issvnurl(ui, url):'
178 path = os.path.abspath(url)
178 path = os.path.abspath(url)
179 if proto == 'file':
179 if proto == 'file':
180 path = path.replace(os.sep, '/')
180 path = path.replace(os.sep, '/')
181 check = protomap.get(proto, lambda p, p2: False)
181 check = protomap.get(proto, lambda *args: False)
182 while '/' in path:
182 while '/' in path:
183 if check(ui, path, proto):
183 if check(ui, path, proto):
184 return True
184 return True
@@ -62,4 +62,7 b' hg convert a b'
62 echo % "contents of fncache file:"
62 echo % "contents of fncache file:"
63 cat b/.hg/store/fncache
63 cat b/.hg/store/fncache
64
64
65 echo '% test bogus URL'
66 hg convert -q bzr+ssh://foobar@selenic.com/baz baz
67
65 true
68 true
@@ -287,3 +287,5 b' 0 e'
287 % contents of fncache file:
287 % contents of fncache file:
288 data/a.i
288 data/a.i
289 data/b.i
289 data/b.i
290 % test bogus URL
291 abort: bzr+ssh://foobar@selenic.com/baz: missing or unsupported repository
General Comments 0
You need to be logged in to leave comments. Login now