mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
Merge with crew-stable
This commit is contained in:
commit
5aacf29983
@ -178,7 +178,7 @@ def issvnurl(ui, url):
|
||||
path = os.path.abspath(url)
|
||||
if proto == 'file':
|
||||
path = path.replace(os.sep, '/')
|
||||
check = protomap.get(proto, lambda p, p2: False)
|
||||
check = protomap.get(proto, lambda *args: False)
|
||||
while '/' in path:
|
||||
if check(ui, path, proto):
|
||||
return True
|
||||
|
@ -62,4 +62,7 @@ hg convert a b
|
||||
echo % "contents of fncache file:"
|
||||
cat b/.hg/store/fncache
|
||||
|
||||
echo '% test bogus URL'
|
||||
hg convert -q bzr+ssh://foobar@selenic.com/baz baz
|
||||
|
||||
true
|
||||
|
@ -287,3 +287,5 @@ converting...
|
||||
% contents of fncache file:
|
||||
data/a.i
|
||||
data/b.i
|
||||
% test bogus URL
|
||||
abort: bzr+ssh://foobar@selenic.com/baz: missing or unsupported repository
|
||||
|
Loading…
Reference in New Issue
Block a user