Show More
@@ -127,12 +127,7 b' def clone(ui, source, dest=None, pull=Fa' | |||
|
127 | 127 | if self.dir_: |
|
128 | 128 | self.rmtree(self.dir_, True) |
|
129 | 129 | |
|
130 | dest_repo = None | |
|
131 | try: | |
|
132 | dest_repo = repository(ui, dest) | |
|
133 | raise util.Abort(_("destination '%s' already exists." % dest)) | |
|
134 | except RepoError: | |
|
135 | dest_repo = repository(ui, dest, create=True) | |
|
130 | dest_repo = repository(ui, dest, create=True) | |
|
136 | 131 | |
|
137 | 132 | dest_path = None |
|
138 | 133 | dir_cleanup = None |
@@ -27,6 +27,9 b' hg init local' | |||
|
27 | 27 | echo this > local/foo |
|
28 | 28 | hg ci --cwd local -A -m "init" -d "1000000 0" |
|
29 | 29 | |
|
30 | echo "#test failure" | |
|
31 | hg init local | |
|
32 | ||
|
30 | 33 | echo "# init+push to remote2" |
|
31 | 34 | hg init -e ./dummyssh ssh://user@dummy/remote2 |
|
32 | 35 | hg incoming -R remote2 local |
@@ -35,6 +38,12 b' hg push -R local -e ./dummyssh ssh://use' | |||
|
35 | 38 | echo "# clone to remote1" |
|
36 | 39 | hg clone -e ./dummyssh local ssh://user@dummy/remote1 |
|
37 | 40 | |
|
41 | echo "# init to existing repo" | |
|
42 | hg init -e ./dummyssh ssh://user@dummy/remote1 | |
|
43 | ||
|
44 | echo "# clone to existing repo" | |
|
45 | hg clone -e ./dummyssh local ssh://user@dummy/remote1 | |
|
46 | ||
|
38 | 47 | echo "# output of dummyssh" |
|
39 | 48 | cat dummylog |
|
40 | 49 |
@@ -1,5 +1,7 b'' | |||
|
1 | 1 | # creating 'local' |
|
2 | 2 | adding foo |
|
3 | #test failure | |
|
4 | abort: repository local already exists! | |
|
3 | 5 | # init+push to remote2 |
|
4 | 6 | remote: abort: repository remote2 not found! |
|
5 | 7 | changeset: 0:c4e059d443be |
@@ -17,19 +19,23 b' remote: added 1 changesets with 1 change' | |||
|
17 | 19 | # clone to remote1 |
|
18 | 20 | remote: abort: repository remote1 not found! |
|
19 | 21 | searching for changes |
|
20 | remote: abort: repository remote1 not found! | |
|
21 | 22 | remote: adding changesets |
|
22 | 23 | remote: adding manifests |
|
23 | 24 | remote: adding file changes |
|
24 | 25 | remote: added 1 changesets with 1 changes to 1 files |
|
26 | # init to existing repo | |
|
27 | abort: repository ssh://user@dummy/remote1 already exists! | |
|
28 | # clone to existing repo | |
|
29 | abort: repository ssh://user@dummy/remote1 already exists! | |
|
25 | 30 | # output of dummyssh |
|
26 | 31 | Got arguments 1:user@dummy 2:hg -R remote2 serve --stdio 3: 4: 5: |
|
27 | 32 | Got arguments 1:user@dummy 2:hg init remote2 3: 4: 5: |
|
28 | 33 | Got arguments 1:user@dummy 2:hg -R remote2 serve --stdio 3: 4: 5: |
|
29 | 34 | Got arguments 1:user@dummy 2:hg -R remote2 serve --stdio 3: 4: 5: |
|
30 | 35 | Got arguments 1:user@dummy 2:hg -R remote1 serve --stdio 3: 4: 5: |
|
36 | Got arguments 1:user@dummy 2:hg init remote1 3: 4: 5: | |
|
31 | 37 | Got arguments 1:user@dummy 2:hg -R remote1 serve --stdio 3: 4: 5: |
|
32 |
Got arguments 1:user@dummy 2:hg |
|
|
38 | Got arguments 1:user@dummy 2:hg -R remote1 serve --stdio 3: 4: 5: | |
|
33 | 39 | Got arguments 1:user@dummy 2:hg -R remote1 serve --stdio 3: 4: 5: |
|
34 | 40 | # comparing repositories |
|
35 | 41 | 0:c4e059d443be |
General Comments 0
You need to be logged in to leave comments.
Login now