Show More
@@ -1,18 +1,38 b'' | |||||
1 | #!/bin/sh |
|
1 | $ hg init a | |
|
2 | ||||
|
3 | $ echo a > a/a | |||
|
4 | $ hg --cwd a ci -Ama | |||
|
5 | adding a | |||
2 |
|
6 | |||
3 | hg init a |
|
7 | $ hg clone a c | |
4 | echo a > a/a |
|
8 | updating to branch default | |
5 | hg --cwd a ci -Ama |
|
9 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
6 |
|
10 | |||
7 |
hg clone a |
|
11 | $ hg clone a b | |
|
12 | updating to branch default | |||
|
13 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
14 | ||||
|
15 | $ echo b >> b/a | |||
|
16 | $ hg --cwd b ci -mb | |||
|
17 | ||||
|
18 | Push should push to 'default' when 'default-push' not set: | |||
8 |
|
19 | |||
9 | hg clone a b |
|
20 | $ hg --cwd b push | |
10 | echo b >> b/a |
|
21 | pushing to .*/a | |
11 | hg --cwd b ci -mb |
|
22 | searching for changes | |
|
23 | adding changesets | |||
|
24 | adding manifests | |||
|
25 | adding file changes | |||
|
26 | added 1 changesets with 1 changes to 1 files | |||
|
27 | ||||
|
28 | Push should push to 'default-push' when set: | |||
12 |
|
29 | |||
13 | echo % push should push to default when default-push not set |
|
30 | $ echo 'default-push = ../c' >> b/.hg/hgrc | |
14 | hg --cwd b push | sed 's/pushing to.*/pushing/' |
|
31 | $ hg --cwd b push | |
|
32 | pushing to .*/c | |||
|
33 | searching for changes | |||
|
34 | adding changesets | |||
|
35 | adding manifests | |||
|
36 | adding file changes | |||
|
37 | added 1 changesets with 1 changes to 1 files | |||
15 |
|
38 | |||
16 | echo % push should push to default-push when set |
|
|||
17 | echo 'default-push = ../c' >> b/.hg/hgrc |
|
|||
18 | hg --cwd b push | sed 's/pushing to.*/pushing/' |
|
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now