Show More
@@ -404,7 +404,7 b' def clone(ui, peeropts, source, dest=Non' | |||||
404 | shareopts = shareopts or {} |
|
404 | shareopts = shareopts or {} | |
405 | sharepool = shareopts.get('pool') |
|
405 | sharepool = shareopts.get('pool') | |
406 | sharenamemode = shareopts.get('mode') |
|
406 | sharenamemode = shareopts.get('mode') | |
407 | if sharepool: |
|
407 | if sharepool and islocal(dest): | |
408 | sharepath = None |
|
408 | sharepath = None | |
409 | if sharenamemode == 'identity': |
|
409 | if sharenamemode == 'identity': | |
410 | # Resolve the name from the initial changeset in the remote |
|
410 | # Resolve the name from the initial changeset in the remote |
@@ -1013,3 +1013,15 b' Request to clone a single branch is resp' | |||||
1013 | adding remote bookmark bookA |
|
1013 | adding remote bookmark bookA | |
1014 |
|
1014 | |||
1015 | $ ls share-1anowc |
|
1015 | $ ls share-1anowc | |
|
1016 | ||||
|
1017 | Test that auto sharing doesn't cause failure of "hg clone local remote" | |||
|
1018 | ||||
|
1019 | $ cd $TESTTMP | |||
|
1020 | $ hg -R a id -r 0 | |||
|
1021 | acb14030fe0a | |||
|
1022 | $ hg id -R remote -r 0 | |||
|
1023 | abort: there is no Mercurial repository here (.hg not found) | |||
|
1024 | [255] | |||
|
1025 | $ hg --config share.pool=share -q clone -e "python \"$TESTDIR/dummyssh\"" a ssh://user@dummy/remote | |||
|
1026 | $ hg -R remote id -r 0 | |||
|
1027 | acb14030fe0a |
General Comments 0
You need to be logged in to leave comments.
Login now