Show More
@@ -32,13 +32,6 b' class sshrepository(remoterepository):' | |||||
32 | remotecmd = self.ui.config("ui", "remotecmd", "hg") |
|
32 | remotecmd = self.ui.config("ui", "remotecmd", "hg") | |
33 |
|
33 | |||
34 | if create: |
|
34 | if create: | |
35 | try: |
|
|||
36 | self.validate_repo(ui, sshcmd, args, remotecmd) |
|
|||
37 | except hg.RepoError: |
|
|||
38 | pass |
|
|||
39 | else: |
|
|||
40 | raise hg.RepoError(_("repository %s already exists") % path) |
|
|||
41 |
|
||||
42 | cmd = '%s %s "%s init %s"' |
|
35 | cmd = '%s %s "%s init %s"' | |
43 | cmd = cmd % (sshcmd, args, remotecmd, self.path) |
|
36 | cmd = cmd % (sshcmd, args, remotecmd, self.path) | |
44 |
|
37 |
@@ -3,7 +3,6 b' adding foo' | |||||
3 | #test failure |
|
3 | #test failure | |
4 | abort: repository local already exists! |
|
4 | abort: repository local already exists! | |
5 | # init+push to remote2 |
|
5 | # init+push to remote2 | |
6 | remote: abort: repository remote2 not found! |
|
|||
7 | changeset: 0:c4e059d443be |
|
6 | changeset: 0:c4e059d443be | |
8 | tag: tip |
|
7 | tag: tip | |
9 | user: test |
|
8 | user: test | |
@@ -17,26 +16,25 b' remote: adding manifests' | |||||
17 | remote: adding file changes |
|
16 | remote: adding file changes | |
18 | remote: added 1 changesets with 1 changes to 1 files |
|
17 | remote: added 1 changesets with 1 changes to 1 files | |
19 | # clone to remote1 |
|
18 | # clone to remote1 | |
20 | remote: abort: repository remote1 not found! |
|
|||
21 | searching for changes |
|
19 | searching for changes | |
22 | remote: adding changesets |
|
20 | remote: adding changesets | |
23 | remote: adding manifests |
|
21 | remote: adding manifests | |
24 | remote: adding file changes |
|
22 | remote: adding file changes | |
25 | remote: added 1 changesets with 1 changes to 1 files |
|
23 | remote: added 1 changesets with 1 changes to 1 files | |
26 | # init to existing repo |
|
24 | # init to existing repo | |
27 |
abort: repository |
|
25 | abort: repository remote1 already exists! | |
|
26 | abort: could not create remote repo! | |||
28 | # clone to existing repo |
|
27 | # clone to existing repo | |
29 |
abort: repository |
|
28 | abort: repository remote1 already exists! | |
|
29 | abort: could not create remote repo! | |||
30 | # output of dummyssh |
|
30 | # output of dummyssh | |
31 | Got arguments 1:user@dummy 2:hg -R remote2 serve --stdio 3: 4: 5: |
|
|||
32 | Got arguments 1:user@dummy 2:hg init remote2 3: 4: 5: |
|
31 | Got arguments 1:user@dummy 2:hg init remote2 3: 4: 5: | |
33 | Got arguments 1:user@dummy 2:hg -R remote2 serve --stdio 3: 4: 5: |
|
32 | Got arguments 1:user@dummy 2:hg -R remote2 serve --stdio 3: 4: 5: | |
34 | Got arguments 1:user@dummy 2:hg -R remote2 serve --stdio 3: 4: 5: |
|
33 | Got arguments 1:user@dummy 2:hg -R remote2 serve --stdio 3: 4: 5: | |
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: |
|
34 | Got arguments 1:user@dummy 2:hg init remote1 3: 4: 5: | |
37 | Got arguments 1:user@dummy 2:hg -R remote1 serve --stdio 3: 4: 5: |
|
35 | Got arguments 1:user@dummy 2:hg -R remote1 serve --stdio 3: 4: 5: | |
38 |
Got arguments 1:user@dummy 2:hg |
|
36 | Got arguments 1:user@dummy 2:hg init remote1 3: 4: 5: | |
39 |
Got arguments 1:user@dummy 2:hg |
|
37 | Got arguments 1:user@dummy 2:hg init remote1 3: 4: 5: | |
40 | # comparing repositories |
|
38 | # comparing repositories | |
41 | 0:c4e059d443be |
|
39 | 0:c4e059d443be | |
42 | 0:c4e059d443be |
|
40 | 0:c4e059d443be |
General Comments 0
You need to be logged in to leave comments.
Login now