Show More
@@ -0,0 +1,14 b'' | |||||
|
1 | #!/usr/bin/env python | |||
|
2 | # | |||
|
3 | # This used to be a simple sed call like: | |||
|
4 | # | |||
|
5 | # $ sed "s:$HGTMP:*HGTMP*:" | |||
|
6 | # | |||
|
7 | # But $HGTMP has ':' under Windows which breaks the sed call. | |||
|
8 | # | |||
|
9 | import sys, os | |||
|
10 | ||||
|
11 | input = sys.stdin.read() | |||
|
12 | input = input.replace(os.environ['HGTMP'], '$HGTMP') | |||
|
13 | input = input.replace(os.sep, '/') | |||
|
14 | sys.stdout.write(input) |
@@ -1,48 +1,48 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | echo "[extensions]" >> $HGRCPATH |
|
3 | echo "[extensions]" >> $HGRCPATH | |
4 | echo "share = " >> $HGRCPATH |
|
4 | echo "share = " >> $HGRCPATH | |
5 |
|
5 | |||
6 | echo % prepare repo1 |
|
6 | echo % prepare repo1 | |
7 | hg init repo1 |
|
7 | hg init repo1 | |
8 | cd repo1 |
|
8 | cd repo1 | |
9 | echo a > a |
|
9 | echo a > a | |
10 | hg commit -A -m'init' |
|
10 | hg commit -A -m'init' | |
11 |
|
11 | |||
12 | echo % share it |
|
12 | echo % share it | |
13 | cd .. |
|
13 | cd .. | |
14 | hg share repo1 repo2 |
|
14 | hg share repo1 repo2 | |
15 |
|
15 | |||
16 | echo % contents of repo2/.hg |
|
16 | echo % contents of repo2/.hg | |
17 | cd repo2 |
|
17 | cd repo2 | |
18 | [ -d .hg/store ] \ |
|
18 | [ -d .hg/store ] \ | |
19 | && echo "fail: .hg/store should not exist" \ |
|
19 | && echo "fail: .hg/store should not exist" \ | |
20 | || echo "pass: .hg/store does not exist" |
|
20 | || echo "pass: .hg/store does not exist" | |
21 | # Some sed versions appends newline, some don't, and some just fails |
|
21 | # Some sed versions appends newline, some don't, and some just fails | |
22 |
(cat .hg/sharedpath; echo) | head -n1 | |
|
22 | (cat .hg/sharedpath; echo) | head -n1 | "$TESTDIR/filtertmp.py" | |
23 |
|
23 | |||
24 | echo % commit in shared clone |
|
24 | echo % commit in shared clone | |
25 | echo a >> a |
|
25 | echo a >> a | |
26 | hg commit -m'change in shared clone' |
|
26 | hg commit -m'change in shared clone' | |
27 |
|
27 | |||
28 | echo % check original |
|
28 | echo % check original | |
29 | cd ../repo1 |
|
29 | cd ../repo1 | |
30 | hg log |
|
30 | hg log | |
31 | hg update |
|
31 | hg update | |
32 | cat a # should be two lines of "a" |
|
32 | cat a # should be two lines of "a" | |
33 |
|
33 | |||
34 | echo % commit in original |
|
34 | echo % commit in original | |
35 | echo b > b |
|
35 | echo b > b | |
36 | hg commit -A -m'another file' |
|
36 | hg commit -A -m'another file' | |
37 |
|
37 | |||
38 | echo % check in shared clone |
|
38 | echo % check in shared clone | |
39 | cd ../repo2 |
|
39 | cd ../repo2 | |
40 | hg log |
|
40 | hg log | |
41 | hg update |
|
41 | hg update | |
42 | cat b # should exist with one "b" |
|
42 | cat b # should exist with one "b" | |
43 |
|
43 | |||
44 | echo % hg serve shared clone |
|
44 | echo % hg serve shared clone | |
45 | hg serve -n test -p $HGPORT -d --pid-file=hg.pid |
|
45 | hg serve -n test -p $HGPORT -d --pid-file=hg.pid | |
46 | cat hg.pid >> $DAEMON_PIDS |
|
46 | cat hg.pid >> $DAEMON_PIDS | |
47 |
|
47 | |||
48 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/raw-file/' |
|
48 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/raw-file/' |
@@ -1,53 +1,53 b'' | |||||
1 | % prepare repo1 |
|
1 | % prepare repo1 | |
2 | adding a |
|
2 | adding a | |
3 | % share it |
|
3 | % share it | |
4 | updating working directory |
|
4 | updating working directory | |
5 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
5 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
6 | % contents of repo2/.hg |
|
6 | % contents of repo2/.hg | |
7 | pass: .hg/store does not exist |
|
7 | pass: .hg/store does not exist | |
8 |
|
|
8 | $HGTMP/test-share/repo1/.hg | |
9 | % commit in shared clone |
|
9 | % commit in shared clone | |
10 | % check original |
|
10 | % check original | |
11 | changeset: 1:8af4dc49db9e |
|
11 | changeset: 1:8af4dc49db9e | |
12 | tag: tip |
|
12 | tag: tip | |
13 | user: test |
|
13 | user: test | |
14 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
14 | date: Thu Jan 01 00:00:00 1970 +0000 | |
15 | summary: change in shared clone |
|
15 | summary: change in shared clone | |
16 |
|
16 | |||
17 | changeset: 0:d3873e73d99e |
|
17 | changeset: 0:d3873e73d99e | |
18 | user: test |
|
18 | user: test | |
19 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
19 | date: Thu Jan 01 00:00:00 1970 +0000 | |
20 | summary: init |
|
20 | summary: init | |
21 |
|
21 | |||
22 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
22 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
23 | a |
|
23 | a | |
24 | a |
|
24 | a | |
25 | % commit in original |
|
25 | % commit in original | |
26 | adding b |
|
26 | adding b | |
27 | % check in shared clone |
|
27 | % check in shared clone | |
28 | changeset: 2:c2e0ac586386 |
|
28 | changeset: 2:c2e0ac586386 | |
29 | tag: tip |
|
29 | tag: tip | |
30 | user: test |
|
30 | user: test | |
31 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
31 | date: Thu Jan 01 00:00:00 1970 +0000 | |
32 | summary: another file |
|
32 | summary: another file | |
33 |
|
33 | |||
34 | changeset: 1:8af4dc49db9e |
|
34 | changeset: 1:8af4dc49db9e | |
35 | user: test |
|
35 | user: test | |
36 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
36 | date: Thu Jan 01 00:00:00 1970 +0000 | |
37 | summary: change in shared clone |
|
37 | summary: change in shared clone | |
38 |
|
38 | |||
39 | changeset: 0:d3873e73d99e |
|
39 | changeset: 0:d3873e73d99e | |
40 | user: test |
|
40 | user: test | |
41 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
41 | date: Thu Jan 01 00:00:00 1970 +0000 | |
42 | summary: init |
|
42 | summary: init | |
43 |
|
43 | |||
44 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
44 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
45 | b |
|
45 | b | |
46 | % hg serve shared clone |
|
46 | % hg serve shared clone | |
47 | 200 Script output follows |
|
47 | 200 Script output follows | |
48 |
|
48 | |||
49 |
|
49 | |||
50 | -rw-r--r-- 4 a |
|
50 | -rw-r--r-- 4 a | |
51 | -rw-r--r-- 2 b |
|
51 | -rw-r--r-- 2 b | |
52 |
|
52 | |||
53 |
|
53 |
@@ -1,186 +1,188 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | rm -rf sub |
|
3 | rm -rf sub | |
4 | mkdir sub |
|
4 | mkdir sub | |
5 | cd sub |
|
5 | cd sub | |
6 | hg init t |
|
6 | hg init t | |
7 | cd t |
|
7 | cd t | |
8 |
|
8 | |||
9 | echo % first revision, no sub |
|
9 | echo % first revision, no sub | |
10 | echo a > a |
|
10 | echo a > a | |
11 | hg ci -Am0 |
|
11 | hg ci -Am0 | |
12 |
|
12 | |||
13 | echo % add first sub |
|
13 | echo % add first sub | |
14 | echo s = s > .hgsub |
|
14 | echo s = s > .hgsub | |
15 | hg add .hgsub |
|
15 | hg add .hgsub | |
16 | hg init s |
|
16 | hg init s | |
17 | echo a > s/a |
|
17 | echo a > s/a | |
18 | hg -R s ci -Ams0 |
|
18 | hg -R s ci -Ams0 | |
19 | hg ci -m1 |
|
19 | hg ci -m1 | |
20 |
|
20 | |||
21 | echo % add sub sub |
|
21 | echo % add sub sub | |
22 | echo ss = ss > s/.hgsub |
|
22 | echo ss = ss > s/.hgsub | |
23 | hg init s/ss |
|
23 | hg init s/ss | |
24 | echo a > s/ss/a |
|
24 | echo a > s/ss/a | |
25 | hg -R s add s/.hgsub |
|
25 | hg -R s add s/.hgsub | |
26 | hg -R s/ss add s/ss/a |
|
26 | hg -R s/ss add s/ss/a | |
27 | hg ci -m2 |
|
27 | hg ci -m2 | |
28 |
|
28 | |||
29 | echo % bump sub rev |
|
29 | echo % bump sub rev | |
30 | echo b > s/a |
|
30 | echo b > s/a | |
31 | hg -R s ci -ms1 |
|
31 | hg -R s ci -ms1 | |
32 | hg ci -m3 |
|
32 | hg ci -m3 | |
33 |
|
33 | |||
34 | echo % leave sub dirty |
|
34 | echo % leave sub dirty | |
35 | echo c > s/a |
|
35 | echo c > s/a | |
36 | hg ci -m4 |
|
36 | hg ci -m4 | |
37 | hg tip -R s |
|
37 | hg tip -R s | |
38 |
|
38 | |||
39 | echo % check caching |
|
39 | echo % check caching | |
40 | hg co 0 |
|
40 | hg co 0 | |
41 | hg debugsub |
|
41 | hg debugsub | |
42 | echo % restore |
|
42 | echo % restore | |
43 | hg co |
|
43 | hg co | |
44 | hg debugsub |
|
44 | hg debugsub | |
45 |
|
45 | |||
46 | echo % new branch for merge tests |
|
46 | echo % new branch for merge tests | |
47 | hg co 1 |
|
47 | hg co 1 | |
48 | echo t = t >> .hgsub |
|
48 | echo t = t >> .hgsub | |
49 | hg init t |
|
49 | hg init t | |
50 | echo t > t/t |
|
50 | echo t > t/t | |
51 | hg -R t add t |
|
51 | hg -R t add t | |
52 | echo % 5 |
|
52 | echo % 5 | |
53 | hg ci -m5 # add sub |
|
53 | hg ci -m5 # add sub | |
54 | echo t2 > t/t |
|
54 | echo t2 > t/t | |
55 | echo % 6 |
|
55 | echo % 6 | |
56 | hg st -R s |
|
56 | hg st -R s | |
57 | hg ci -m6 # change sub |
|
57 | hg ci -m6 # change sub | |
58 | hg debugsub |
|
58 | hg debugsub | |
59 | echo t3 > t/t |
|
59 | echo t3 > t/t | |
60 | echo % 7 |
|
60 | echo % 7 | |
61 | hg ci -m7 # change sub again for conflict test |
|
61 | hg ci -m7 # change sub again for conflict test | |
62 | hg rm .hgsub |
|
62 | hg rm .hgsub | |
63 | echo % 8 |
|
63 | echo % 8 | |
64 | hg ci -m8 # remove sub |
|
64 | hg ci -m8 # remove sub | |
65 |
|
65 | |||
66 | echo % merge tests |
|
66 | echo % merge tests | |
67 | hg co -C 3 |
|
67 | hg co -C 3 | |
68 | hg merge 5 # test adding |
|
68 | hg merge 5 # test adding | |
69 | hg debugsub |
|
69 | hg debugsub | |
70 | hg ci -m9 |
|
70 | hg ci -m9 | |
71 | hg merge 6 --debug # test change |
|
71 | hg merge 6 --debug # test change | |
72 | hg debugsub |
|
72 | hg debugsub | |
73 | echo conflict > t/t |
|
73 | echo conflict > t/t | |
74 | hg ci -m10 |
|
74 | hg ci -m10 | |
75 | HGMERGE=internal:merge hg merge --debug 7 # test conflict |
|
75 | HGMERGE=internal:merge hg merge --debug 7 # test conflict | |
76 | echo % should conflict |
|
76 | echo % should conflict | |
77 | cat t/t |
|
77 | cat t/t | |
78 |
|
78 | |||
79 | echo % clone |
|
79 | echo % clone | |
80 | cd .. |
|
80 | cd .. | |
81 | hg clone t tc |
|
81 | hg clone t tc | |
82 | cd tc |
|
82 | cd tc | |
83 | hg debugsub |
|
83 | hg debugsub | |
84 |
|
84 | |||
85 | echo % push |
|
85 | echo % push | |
86 | echo bah > t/t |
|
86 | echo bah > t/t | |
87 | hg ci -m11 |
|
87 | hg ci -m11 | |
88 | hg push | sed 's/ .*sub/ ...sub/g' |
|
88 | hg push | sed 's/ .*sub/ ...sub/g' | |
89 |
|
89 | |||
90 | echo % push -f |
|
90 | echo % push -f | |
91 | echo bah > s/a |
|
91 | echo bah > s/a | |
92 | hg ci -m12 |
|
92 | hg ci -m12 | |
93 | hg push | sed 's/ .*sub/ ...sub/g' |
|
93 | hg push | sed 's/ .*sub/ ...sub/g' | |
94 | hg push -f | sed 's/ .*sub/ ...sub/g' |
|
94 | hg push -f | sed 's/ .*sub/ ...sub/g' | |
95 |
|
95 | |||
96 | echo % update |
|
96 | echo % update | |
97 | cd ../t |
|
97 | cd ../t | |
98 | hg up -C # discard our earlier merge |
|
98 | hg up -C # discard our earlier merge | |
99 | echo blah > t/t |
|
99 | echo blah > t/t | |
100 | hg ci -m13 |
|
100 | hg ci -m13 | |
101 |
|
101 | |||
102 | echo % pull |
|
102 | echo % pull | |
103 | cd ../tc |
|
103 | cd ../tc | |
104 | hg pull | sed 's/ .*sub/ ...sub/g' |
|
104 | hg pull | sed 's/ .*sub/ ...sub/g' | |
105 | hg up # should pull t |
|
105 | hg up # should pull t | |
106 | cat t/t |
|
106 | cat t/t | |
107 |
|
107 | |||
108 | echo % bogus subrepo path aborts |
|
108 | echo % bogus subrepo path aborts | |
109 | echo 'bogus=[boguspath' >> .hgsub |
|
109 | echo 'bogus=[boguspath' >> .hgsub | |
110 | hg ci -m 'bogus subrepo path' |
|
110 | hg ci -m 'bogus subrepo path' | |
111 |
|
111 | |||
112 | echo % issue 1986 |
|
112 | echo % issue 1986 | |
113 | cd .. |
|
113 | cd .. | |
114 | rm -rf sub |
|
114 | rm -rf sub | |
115 | hg init main |
|
115 | hg init main | |
116 | cd main |
|
116 | cd main | |
117 |
|
117 | |||
118 | hg init s # subrepo layout |
|
118 | hg init s # subrepo layout | |
119 | cd s # |
|
119 | cd s # | |
120 | echo a > a # o 5 br |
|
120 | echo a > a # o 5 br | |
121 | hg ci -Am1 # /| |
|
121 | hg ci -Am1 # /| | |
122 | hg branch br # o | 4 default |
|
122 | hg branch br # o | 4 default | |
123 | echo a >> a # | | |
|
123 | echo a >> a # | | | |
124 | hg ci -m1 # | o 3 br |
|
124 | hg ci -m1 # | o 3 br | |
125 | hg up default # |/| |
|
125 | hg up default # |/| | |
126 | echo b > b # o | 2 default |
|
126 | echo b > b # o | 2 default | |
127 | hg ci -Am1 # | | |
|
127 | hg ci -Am1 # | | | |
128 | hg up br # | o 1 br |
|
128 | hg up br # | o 1 br | |
129 | hg merge tip # |/ |
|
129 | hg merge tip # |/ | |
130 | hg ci -m1 # o 0 default |
|
130 | hg ci -m1 # o 0 default | |
131 | hg up 2 |
|
131 | hg up 2 | |
132 | echo c > c |
|
132 | echo c > c | |
133 | hg ci -Am1 |
|
133 | hg ci -Am1 | |
134 | hg up 3 |
|
134 | hg up 3 | |
135 | hg merge 4 |
|
135 | hg merge 4 | |
136 | hg ci -m1 |
|
136 | hg ci -m1 | |
137 |
|
137 | |||
138 | cd .. # main repo layout: |
|
138 | cd .. # main repo layout: | |
139 | echo 's = s' > .hgsub # |
|
139 | echo 's = s' > .hgsub # | |
140 | hg -R s up 2 # * <-- try to merge default into br again |
|
140 | hg -R s up 2 # * <-- try to merge default into br again | |
141 | hg ci -Am1 # .`| |
|
141 | hg ci -Am1 # .`| | |
142 | hg branch br # . o 5 br --> substate = 5 |
|
142 | hg branch br # . o 5 br --> substate = 5 | |
143 | echo b > b # . | |
|
143 | echo b > b # . | | |
144 | hg -R s up 3 # o | 4 default --> substate = 4 |
|
144 | hg -R s up 3 # o | 4 default --> substate = 4 | |
145 | hg ci -Am1 # | | |
|
145 | hg ci -Am1 # | | | |
146 | hg up default # | o 3 br --> substate = 2 |
|
146 | hg up default # | o 3 br --> substate = 2 | |
147 | echo c > c # |/| |
|
147 | echo c > c # |/| | |
148 | hg ci -Am1 # o | 2 default --> substate = 2 |
|
148 | hg ci -Am1 # o | 2 default --> substate = 2 | |
149 | hg up 1 # | | |
|
149 | hg up 1 # | | | |
150 | hg merge 2 # | o 1 br --> substate = 3 |
|
150 | hg merge 2 # | o 1 br --> substate = 3 | |
151 | hg ci -m1 # |/ |
|
151 | hg ci -m1 # |/ | |
152 | hg up 2 # o 0 default --> substate = 2 |
|
152 | hg up 2 # o 0 default --> substate = 2 | |
153 | hg -R s up 4 |
|
153 | hg -R s up 4 | |
154 | echo d > d |
|
154 | echo d > d | |
155 | hg ci -Am1 |
|
155 | hg ci -Am1 | |
156 | hg up 3 |
|
156 | hg up 3 | |
157 | hg -R s up 5 |
|
157 | hg -R s up 5 | |
158 | echo e > e |
|
158 | echo e > e | |
159 | hg ci -Am1 |
|
159 | hg ci -Am1 | |
160 |
|
160 | |||
161 | hg up 5 |
|
161 | hg up 5 | |
162 | hg merge 4 # try to merge default into br again |
|
162 | hg merge 4 # try to merge default into br again | |
163 | cd .. |
|
163 | cd .. | |
164 |
|
164 | |||
165 | echo % test repository cloning |
|
165 | echo % test repository cloning | |
166 | mkdir mercurial mercurial2 |
|
166 | mkdir mercurial mercurial2 | |
167 | hg init nested_absolute |
|
167 | hg init nested_absolute | |
168 | echo test > nested_absolute/foo |
|
168 | echo test > nested_absolute/foo | |
169 | hg -R nested_absolute add |
|
169 | hg -R nested_absolute add | |
170 | hg -R nested_absolute ci -mtest |
|
170 | hg -R nested_absolute ci -mtest | |
171 | cd mercurial |
|
171 | cd mercurial | |
172 | hg init nested_relative |
|
172 | hg init nested_relative | |
173 | echo test2 > nested_relative/foo2 |
|
173 | echo test2 > nested_relative/foo2 | |
174 | hg -R nested_relative add |
|
174 | hg -R nested_relative add | |
175 | hg -R nested_relative ci -mtest2 |
|
175 | hg -R nested_relative ci -mtest2 | |
176 | hg init main |
|
176 | hg init main | |
177 | echo nested_relative = ../nested_relative > main/.hgsub |
|
177 | echo nested_relative = ../nested_relative > main/.hgsub | |
178 | echo nested_absolute = `pwd`/nested_absolute >> main/.hgsub |
|
178 | echo nested_absolute = `pwd`/nested_absolute >> main/.hgsub | |
179 | hg -R main add |
|
179 | hg -R main add | |
180 | hg -R main ci -m "add subrepos" |
|
180 | hg -R main ci -m "add subrepos" | |
181 | cd .. |
|
181 | cd .. | |
182 | hg clone mercurial/main mercurial2/main |
|
182 | hg clone mercurial/main mercurial2/main | |
183 | cat mercurial2/main/nested_absolute/.hg/hgrc mercurial2/main/nested_relative/.hg/hgrc | sed "s:${PWD}:/tmp:" |
|
183 | cat mercurial2/main/nested_absolute/.hg/hgrc \ | |
|
184 | mercurial2/main/nested_relative/.hg/hgrc \ | |||
|
185 | | "$TESTDIR/filtertmp.py" | |||
184 | rm -rf mercurial mercurial2 |
|
186 | rm -rf mercurial mercurial2 | |
185 |
|
187 | |||
186 | exit 0 |
|
188 | exit 0 |
@@ -1,261 +1,261 b'' | |||||
1 | % first revision, no sub |
|
1 | % first revision, no sub | |
2 | adding a |
|
2 | adding a | |
3 | % add first sub |
|
3 | % add first sub | |
4 | adding a |
|
4 | adding a | |
5 | committing subrepository s |
|
5 | committing subrepository s | |
6 | % add sub sub |
|
6 | % add sub sub | |
7 | committing subrepository s |
|
7 | committing subrepository s | |
8 | committing subrepository ss |
|
8 | committing subrepository ss | |
9 | % bump sub rev |
|
9 | % bump sub rev | |
10 | committing subrepository s |
|
10 | committing subrepository s | |
11 | % leave sub dirty |
|
11 | % leave sub dirty | |
12 | committing subrepository s |
|
12 | committing subrepository s | |
13 | changeset: 3:1c833a7a9e3a |
|
13 | changeset: 3:1c833a7a9e3a | |
14 | tag: tip |
|
14 | tag: tip | |
15 | user: test |
|
15 | user: test | |
16 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
16 | date: Thu Jan 01 00:00:00 1970 +0000 | |
17 | summary: 4 |
|
17 | summary: 4 | |
18 |
|
18 | |||
19 | % check caching |
|
19 | % check caching | |
20 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
20 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
21 | % restore |
|
21 | % restore | |
22 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
22 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
23 | path s |
|
23 | path s | |
24 | source s |
|
24 | source s | |
25 | revision 1c833a7a9e3a4445c711aaf0f012379cd0d4034e |
|
25 | revision 1c833a7a9e3a4445c711aaf0f012379cd0d4034e | |
26 | % new branch for merge tests |
|
26 | % new branch for merge tests | |
27 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
27 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
28 | adding t/t |
|
28 | adding t/t | |
29 | % 5 |
|
29 | % 5 | |
30 | committing subrepository t |
|
30 | committing subrepository t | |
31 | created new head |
|
31 | created new head | |
32 | % 6 |
|
32 | % 6 | |
33 | committing subrepository t |
|
33 | committing subrepository t | |
34 | path s |
|
34 | path s | |
35 | source s |
|
35 | source s | |
36 | revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 |
|
36 | revision e4ece1bf43360ddc8f6a96432201a37b7cd27ae4 | |
37 | path t |
|
37 | path t | |
38 | source t |
|
38 | source t | |
39 | revision 6747d179aa9a688023c4b0cad32e4c92bb7f34ad |
|
39 | revision 6747d179aa9a688023c4b0cad32e4c92bb7f34ad | |
40 | % 7 |
|
40 | % 7 | |
41 | committing subrepository t |
|
41 | committing subrepository t | |
42 | % 8 |
|
42 | % 8 | |
43 | % merge tests |
|
43 | % merge tests | |
44 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
44 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
45 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
45 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
46 | (branch merge, don't forget to commit) |
|
46 | (branch merge, don't forget to commit) | |
47 | path s |
|
47 | path s | |
48 | source s |
|
48 | source s | |
49 | revision fc627a69481fcbe5f1135069e8a3881c023e4cf5 |
|
49 | revision fc627a69481fcbe5f1135069e8a3881c023e4cf5 | |
50 | path t |
|
50 | path t | |
51 | source t |
|
51 | source t | |
52 | revision 60ca1237c19474e7a3978b0dc1ca4e6f36d51382 |
|
52 | revision 60ca1237c19474e7a3978b0dc1ca4e6f36d51382 | |
53 | created new head |
|
53 | created new head | |
54 | searching for copies back to rev 2 |
|
54 | searching for copies back to rev 2 | |
55 | resolving manifests |
|
55 | resolving manifests | |
56 | overwrite None partial False |
|
56 | overwrite None partial False | |
57 | ancestor 1f14a2e2d3ec local f0d2028bf86d+ remote 1831e14459c4 |
|
57 | ancestor 1f14a2e2d3ec local f0d2028bf86d+ remote 1831e14459c4 | |
58 | .hgsubstate: versions differ -> m |
|
58 | .hgsubstate: versions differ -> m | |
59 | update: .hgsubstate 1/1 files (100.00%) |
|
59 | update: .hgsubstate 1/1 files (100.00%) | |
60 | subrepo merge f0d2028bf86d+ 1831e14459c4 1f14a2e2d3ec |
|
60 | subrepo merge f0d2028bf86d+ 1831e14459c4 1f14a2e2d3ec | |
61 | subrepo t: other changed, get t:6747d179aa9a688023c4b0cad32e4c92bb7f34ad:hg |
|
61 | subrepo t: other changed, get t:6747d179aa9a688023c4b0cad32e4c92bb7f34ad:hg | |
62 | getting subrepo t |
|
62 | getting subrepo t | |
63 | resolving manifests |
|
63 | resolving manifests | |
64 | overwrite True partial False |
|
64 | overwrite True partial False | |
65 | ancestor 60ca1237c194+ local 60ca1237c194+ remote 6747d179aa9a |
|
65 | ancestor 60ca1237c194+ local 60ca1237c194+ remote 6747d179aa9a | |
66 | t: remote is newer -> g |
|
66 | t: remote is newer -> g | |
67 | update: t 1/1 files (100.00%) |
|
67 | update: t 1/1 files (100.00%) | |
68 | getting t |
|
68 | getting t | |
69 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
69 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
70 | (branch merge, don't forget to commit) |
|
70 | (branch merge, don't forget to commit) | |
71 | path s |
|
71 | path s | |
72 | source s |
|
72 | source s | |
73 | revision fc627a69481fcbe5f1135069e8a3881c023e4cf5 |
|
73 | revision fc627a69481fcbe5f1135069e8a3881c023e4cf5 | |
74 | path t |
|
74 | path t | |
75 | source t |
|
75 | source t | |
76 | revision 6747d179aa9a688023c4b0cad32e4c92bb7f34ad |
|
76 | revision 6747d179aa9a688023c4b0cad32e4c92bb7f34ad | |
77 | committing subrepository t |
|
77 | committing subrepository t | |
78 | searching for copies back to rev 2 |
|
78 | searching for copies back to rev 2 | |
79 | resolving manifests |
|
79 | resolving manifests | |
80 | overwrite None partial False |
|
80 | overwrite None partial False | |
81 | ancestor 1831e14459c4 local e45c8b14af55+ remote f94576341bcf |
|
81 | ancestor 1831e14459c4 local e45c8b14af55+ remote f94576341bcf | |
82 | .hgsubstate: versions differ -> m |
|
82 | .hgsubstate: versions differ -> m | |
83 | update: .hgsubstate 1/1 files (100.00%) |
|
83 | update: .hgsubstate 1/1 files (100.00%) | |
84 | subrepo merge e45c8b14af55+ f94576341bcf 1831e14459c4 |
|
84 | subrepo merge e45c8b14af55+ f94576341bcf 1831e14459c4 | |
85 | subrepo t: both sides changed, merge with t:7af322bc1198a32402fe903e0b7ebcfc5c9bf8f4:hg |
|
85 | subrepo t: both sides changed, merge with t:7af322bc1198a32402fe903e0b7ebcfc5c9bf8f4:hg | |
86 | merging subrepo t |
|
86 | merging subrepo t | |
87 | searching for copies back to rev 2 |
|
87 | searching for copies back to rev 2 | |
88 | resolving manifests |
|
88 | resolving manifests | |
89 | overwrite None partial False |
|
89 | overwrite None partial False | |
90 | ancestor 6747d179aa9a local 20a0db6fbf6c+ remote 7af322bc1198 |
|
90 | ancestor 6747d179aa9a local 20a0db6fbf6c+ remote 7af322bc1198 | |
91 | t: versions differ -> m |
|
91 | t: versions differ -> m | |
92 | preserving t for resolve of t |
|
92 | preserving t for resolve of t | |
93 | update: t 1/1 files (100.00%) |
|
93 | update: t 1/1 files (100.00%) | |
94 | picked tool 'internal:merge' for t (binary False symlink False) |
|
94 | picked tool 'internal:merge' for t (binary False symlink False) | |
95 | merging t |
|
95 | merging t | |
96 | my t@20a0db6fbf6c+ other t@7af322bc1198 ancestor t@6747d179aa9a |
|
96 | my t@20a0db6fbf6c+ other t@7af322bc1198 ancestor t@6747d179aa9a | |
97 | warning: conflicts during merge. |
|
97 | warning: conflicts during merge. | |
98 | merging t failed! |
|
98 | merging t failed! | |
99 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
99 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
100 | use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon |
|
100 | use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon | |
101 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
101 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
102 | (branch merge, don't forget to commit) |
|
102 | (branch merge, don't forget to commit) | |
103 | % should conflict |
|
103 | % should conflict | |
104 | <<<<<<< local |
|
104 | <<<<<<< local | |
105 | conflict |
|
105 | conflict | |
106 | ======= |
|
106 | ======= | |
107 | t3 |
|
107 | t3 | |
108 | >>>>>>> other |
|
108 | >>>>>>> other | |
109 | % clone |
|
109 | % clone | |
110 | updating to branch default |
|
110 | updating to branch default | |
111 | pulling subrepo s |
|
111 | pulling subrepo s | |
112 | requesting all changes |
|
112 | requesting all changes | |
113 | adding changesets |
|
113 | adding changesets | |
114 | adding manifests |
|
114 | adding manifests | |
115 | adding file changes |
|
115 | adding file changes | |
116 | added 4 changesets with 5 changes to 3 files |
|
116 | added 4 changesets with 5 changes to 3 files | |
117 | pulling subrepo ss |
|
117 | pulling subrepo ss | |
118 | requesting all changes |
|
118 | requesting all changes | |
119 | adding changesets |
|
119 | adding changesets | |
120 | adding manifests |
|
120 | adding manifests | |
121 | adding file changes |
|
121 | adding file changes | |
122 | added 1 changesets with 1 changes to 1 files |
|
122 | added 1 changesets with 1 changes to 1 files | |
123 | pulling subrepo t |
|
123 | pulling subrepo t | |
124 | requesting all changes |
|
124 | requesting all changes | |
125 | adding changesets |
|
125 | adding changesets | |
126 | adding manifests |
|
126 | adding manifests | |
127 | adding file changes |
|
127 | adding file changes | |
128 | added 4 changesets with 4 changes to 1 files (+1 heads) |
|
128 | added 4 changesets with 4 changes to 1 files (+1 heads) | |
129 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
129 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
130 | path s |
|
130 | path s | |
131 | source s |
|
131 | source s | |
132 | revision fc627a69481fcbe5f1135069e8a3881c023e4cf5 |
|
132 | revision fc627a69481fcbe5f1135069e8a3881c023e4cf5 | |
133 | path t |
|
133 | path t | |
134 | source t |
|
134 | source t | |
135 | revision 20a0db6fbf6c3d2836e6519a642ae929bfc67c0e |
|
135 | revision 20a0db6fbf6c3d2836e6519a642ae929bfc67c0e | |
136 | % push |
|
136 | % push | |
137 | committing subrepository t |
|
137 | committing subrepository t | |
138 | pushing ...sub/t |
|
138 | pushing ...sub/t | |
139 | pushing ...subrepo ss |
|
139 | pushing ...subrepo ss | |
140 | searching for changes |
|
140 | searching for changes | |
141 | no changes found |
|
141 | no changes found | |
142 | pushing ...subrepo s |
|
142 | pushing ...subrepo s | |
143 | searching for changes |
|
143 | searching for changes | |
144 | no changes found |
|
144 | no changes found | |
145 | pushing ...subrepo t |
|
145 | pushing ...subrepo t | |
146 | searching for changes |
|
146 | searching for changes | |
147 | adding changesets |
|
147 | adding changesets | |
148 | adding manifests |
|
148 | adding manifests | |
149 | adding file changes |
|
149 | adding file changes | |
150 | added 1 changesets with 1 changes to 1 files |
|
150 | added 1 changesets with 1 changes to 1 files | |
151 | searching for changes |
|
151 | searching for changes | |
152 | adding changesets |
|
152 | adding changesets | |
153 | adding manifests |
|
153 | adding manifests | |
154 | adding file changes |
|
154 | adding file changes | |
155 | added 1 changesets with 1 changes to 1 files |
|
155 | added 1 changesets with 1 changes to 1 files | |
156 | % push -f |
|
156 | % push -f | |
157 | committing subrepository s |
|
157 | committing subrepository s | |
158 | abort: push creates new remote heads on branch 'default'! |
|
158 | abort: push creates new remote heads on branch 'default'! | |
159 | pushing ...sub/t |
|
159 | pushing ...sub/t | |
160 | pushing ...subrepo ss |
|
160 | pushing ...subrepo ss | |
161 | searching for changes |
|
161 | searching for changes | |
162 | no changes found |
|
162 | no changes found | |
163 | pushing ...subrepo s |
|
163 | pushing ...subrepo s | |
164 | searching for changes |
|
164 | searching for changes | |
165 | (did you forget to merge? use push -f to force) |
|
165 | (did you forget to merge? use push -f to force) | |
166 | pushing ...subrepo t |
|
166 | pushing ...subrepo t | |
167 | searching for changes |
|
167 | searching for changes | |
168 | no changes found |
|
168 | no changes found | |
169 | searching for changes |
|
169 | searching for changes | |
170 | adding changesets |
|
170 | adding changesets | |
171 | adding manifests |
|
171 | adding manifests | |
172 | adding file changes |
|
172 | adding file changes | |
173 | added 1 changesets with 1 changes to 1 files |
|
173 | added 1 changesets with 1 changes to 1 files | |
174 | pushing ...sub/t |
|
174 | pushing ...sub/t | |
175 | pushing ...subrepo ss |
|
175 | pushing ...subrepo ss | |
176 | searching for changes |
|
176 | searching for changes | |
177 | no changes found |
|
177 | no changes found | |
178 | pushing ...subrepo s |
|
178 | pushing ...subrepo s | |
179 | searching for changes |
|
179 | searching for changes | |
180 | adding changesets |
|
180 | adding changesets | |
181 | adding manifests |
|
181 | adding manifests | |
182 | adding file changes |
|
182 | adding file changes | |
183 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
183 | added 1 changesets with 1 changes to 1 files (+1 heads) | |
184 | pushing ...subrepo t |
|
184 | pushing ...subrepo t | |
185 | searching for changes |
|
185 | searching for changes | |
186 | no changes found |
|
186 | no changes found | |
187 | searching for changes |
|
187 | searching for changes | |
188 | no changes found |
|
188 | no changes found | |
189 | % update |
|
189 | % update | |
190 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
190 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
191 | committing subrepository t |
|
191 | committing subrepository t | |
192 | % pull |
|
192 | % pull | |
193 | pulling ...sub/t |
|
193 | pulling ...sub/t | |
194 | searching for changes |
|
194 | searching for changes | |
195 | adding changesets |
|
195 | adding changesets | |
196 | adding manifests |
|
196 | adding manifests | |
197 | adding file changes |
|
197 | adding file changes | |
198 | added 1 changesets with 1 changes to 1 files |
|
198 | added 1 changesets with 1 changes to 1 files | |
199 | (run 'hg update' to get a working copy) |
|
199 | (run 'hg update' to get a working copy) | |
200 | pulling subrepo t |
|
200 | pulling subrepo t | |
201 | searching for changes |
|
201 | searching for changes | |
202 | adding changesets |
|
202 | adding changesets | |
203 | adding manifests |
|
203 | adding manifests | |
204 | adding file changes |
|
204 | adding file changes | |
205 | added 1 changesets with 1 changes to 1 files |
|
205 | added 1 changesets with 1 changes to 1 files | |
206 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
206 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
207 | blah |
|
207 | blah | |
208 | % bogus subrepo path aborts |
|
208 | % bogus subrepo path aborts | |
209 | abort: missing ] in subrepo source |
|
209 | abort: missing ] in subrepo source | |
210 | % issue 1986 |
|
210 | % issue 1986 | |
211 | adding a |
|
211 | adding a | |
212 | marked working directory as branch br |
|
212 | marked working directory as branch br | |
213 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
213 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
214 | adding b |
|
214 | adding b | |
215 | created new head |
|
215 | created new head | |
216 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
216 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
217 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
217 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
218 | (branch merge, don't forget to commit) |
|
218 | (branch merge, don't forget to commit) | |
219 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
219 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
220 | adding c |
|
220 | adding c | |
221 | created new head |
|
221 | created new head | |
222 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
222 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
223 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
223 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
224 | (branch merge, don't forget to commit) |
|
224 | (branch merge, don't forget to commit) | |
225 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
225 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
226 | adding .hgsub |
|
226 | adding .hgsub | |
227 | committing subrepository s |
|
227 | committing subrepository s | |
228 | marked working directory as branch br |
|
228 | marked working directory as branch br | |
229 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
229 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
230 | adding b |
|
230 | adding b | |
231 | committing subrepository s |
|
231 | committing subrepository s | |
232 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
232 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
233 | adding c |
|
233 | adding c | |
234 | created new head |
|
234 | created new head | |
235 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
235 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
236 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
236 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
237 | (branch merge, don't forget to commit) |
|
237 | (branch merge, don't forget to commit) | |
238 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
238 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
239 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
239 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
240 | adding d |
|
240 | adding d | |
241 | committing subrepository s |
|
241 | committing subrepository s | |
242 | created new head |
|
242 | created new head | |
243 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
243 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
244 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
244 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
245 | adding e |
|
245 | adding e | |
246 | committing subrepository s |
|
246 | committing subrepository s | |
247 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
247 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
248 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
248 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
249 | (branch merge, don't forget to commit) |
|
249 | (branch merge, don't forget to commit) | |
250 | % test repository cloning |
|
250 | % test repository cloning | |
251 | adding nested_absolute/foo |
|
251 | adding nested_absolute/foo | |
252 | adding nested_relative/foo2 |
|
252 | adding nested_relative/foo2 | |
253 | adding main/.hgsub |
|
253 | adding main/.hgsub | |
254 | committing subrepository nested_relative |
|
254 | committing subrepository nested_relative | |
255 | committing subrepository nested_absolute |
|
255 | committing subrepository nested_absolute | |
256 | updating to branch default |
|
256 | updating to branch default | |
257 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
257 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
258 | [paths] |
|
258 | [paths] | |
259 |
default = |
|
259 | default = $HGTMP/test-subrepo/sub/mercurial/main/nested_absolute | |
260 | [paths] |
|
260 | [paths] | |
261 |
default = |
|
261 | default = $HGTMP/test-subrepo/sub/mercurial/main/nested_relative |
General Comments 0
You need to be logged in to leave comments.
Login now