##// END OF EJS Templates
tests: drop a useless glob in test-infinite-bundlestore.t...
Matt Harbison -
r37830:91b717e2 stable
parent child Browse files
Show More
@@ -1,364 +1,364
1 #require no-reposimplestore
1 #require no-reposimplestore
2
2
3 Create an ondisk bundlestore in .hg/scratchbranches
3 Create an ondisk bundlestore in .hg/scratchbranches
4 $ . "$TESTDIR/library-infinitepush.sh"
4 $ . "$TESTDIR/library-infinitepush.sh"
5 $ cp $HGRCPATH $TESTTMP/defaulthgrc
5 $ cp $HGRCPATH $TESTTMP/defaulthgrc
6 $ setupcommon
6 $ setupcommon
7 $ mkcommit() {
7 $ mkcommit() {
8 > echo "$1" > "$1"
8 > echo "$1" > "$1"
9 > hg add "$1"
9 > hg add "$1"
10 > hg ci -m "$1"
10 > hg ci -m "$1"
11 > }
11 > }
12 $ hg init repo
12 $ hg init repo
13 $ cd repo
13 $ cd repo
14
14
15 Check that we can send a scratch on the server and it does not show there in
15 Check that we can send a scratch on the server and it does not show there in
16 the history but is stored on disk
16 the history but is stored on disk
17 $ setupserver
17 $ setupserver
18 $ cd ..
18 $ cd ..
19 $ hg clone ssh://user@dummy/repo client -q
19 $ hg clone ssh://user@dummy/repo client -q
20 $ cd client
20 $ cd client
21 $ mkcommit initialcommit
21 $ mkcommit initialcommit
22 $ hg push -r .
22 $ hg push -r .
23 pushing to ssh://user@dummy/repo
23 pushing to ssh://user@dummy/repo
24 searching for changes
24 searching for changes
25 remote: adding changesets
25 remote: adding changesets
26 remote: adding manifests
26 remote: adding manifests
27 remote: adding file changes
27 remote: adding file changes
28 remote: added 1 changesets with 1 changes to 1 files
28 remote: added 1 changesets with 1 changes to 1 files
29 $ mkcommit scratchcommit
29 $ mkcommit scratchcommit
30 $ hg push -r . -B scratch/mybranch
30 $ hg push -r . -B scratch/mybranch
31 pushing to ssh://user@dummy/repo
31 pushing to ssh://user@dummy/repo
32 searching for changes
32 searching for changes
33 remote: pushing 1 commit:
33 remote: pushing 1 commit:
34 remote: 20759b6926ce scratchcommit
34 remote: 20759b6926ce scratchcommit
35 $ hg log -G
35 $ hg log -G
36 @ changeset: 1:20759b6926ce
36 @ changeset: 1:20759b6926ce
37 | bookmark: scratch/mybranch
37 | bookmark: scratch/mybranch
38 | tag: tip
38 | tag: tip
39 | user: test
39 | user: test
40 | date: Thu Jan 01 00:00:00 1970 +0000
40 | date: Thu Jan 01 00:00:00 1970 +0000
41 | summary: scratchcommit
41 | summary: scratchcommit
42 |
42 |
43 o changeset: 0:67145f466344
43 o changeset: 0:67145f466344
44 user: test
44 user: test
45 date: Thu Jan 01 00:00:00 1970 +0000
45 date: Thu Jan 01 00:00:00 1970 +0000
46 summary: initialcommit
46 summary: initialcommit
47
47
48 $ hg log -G -R ../repo
48 $ hg log -G -R ../repo
49 o changeset: 0:67145f466344
49 o changeset: 0:67145f466344
50 tag: tip
50 tag: tip
51 user: test
51 user: test
52 date: Thu Jan 01 00:00:00 1970 +0000
52 date: Thu Jan 01 00:00:00 1970 +0000
53 summary: initialcommit
53 summary: initialcommit
54
54
55 $ find ../repo/.hg/scratchbranches | sort
55 $ find ../repo/.hg/scratchbranches | sort
56 ../repo/.hg/scratchbranches
56 ../repo/.hg/scratchbranches
57 ../repo/.hg/scratchbranches/filebundlestore
57 ../repo/.hg/scratchbranches/filebundlestore
58 ../repo/.hg/scratchbranches/filebundlestore/b9
58 ../repo/.hg/scratchbranches/filebundlestore/b9
59 ../repo/.hg/scratchbranches/filebundlestore/b9/e1
59 ../repo/.hg/scratchbranches/filebundlestore/b9/e1
60 ../repo/.hg/scratchbranches/filebundlestore/b9/e1/b9e1ee5f93fb6d7c42496fc176c09839639dd9cc
60 ../repo/.hg/scratchbranches/filebundlestore/b9/e1/b9e1ee5f93fb6d7c42496fc176c09839639dd9cc
61 ../repo/.hg/scratchbranches/index
61 ../repo/.hg/scratchbranches/index
62 ../repo/.hg/scratchbranches/index/bookmarkmap
62 ../repo/.hg/scratchbranches/index/bookmarkmap
63 ../repo/.hg/scratchbranches/index/bookmarkmap/scratch
63 ../repo/.hg/scratchbranches/index/bookmarkmap/scratch
64 ../repo/.hg/scratchbranches/index/bookmarkmap/scratch/mybranch
64 ../repo/.hg/scratchbranches/index/bookmarkmap/scratch/mybranch
65 ../repo/.hg/scratchbranches/index/nodemap
65 ../repo/.hg/scratchbranches/index/nodemap
66 ../repo/.hg/scratchbranches/index/nodemap/20759b6926ce827d5a8c73eb1fa9726d6f7defb2
66 ../repo/.hg/scratchbranches/index/nodemap/20759b6926ce827d5a8c73eb1fa9726d6f7defb2
67
67
68 From another client we can get the scratchbranch if we ask for it explicitely
68 From another client we can get the scratchbranch if we ask for it explicitely
69
69
70 $ cd ..
70 $ cd ..
71 $ hg clone ssh://user@dummy/repo client2 -q
71 $ hg clone ssh://user@dummy/repo client2 -q
72 $ cd client2
72 $ cd client2
73 $ hg pull -B scratch/mybranch --traceback
73 $ hg pull -B scratch/mybranch --traceback
74 pulling from ssh://user@dummy/repo
74 pulling from ssh://user@dummy/repo
75 searching for changes
75 searching for changes
76 adding changesets
76 adding changesets
77 adding manifests
77 adding manifests
78 adding file changes
78 adding file changes
79 added 1 changesets with 1 changes to 1 files
79 added 1 changesets with 1 changes to 1 files
80 new changesets 20759b6926ce
80 new changesets 20759b6926ce
81 (run 'hg update' to get a working copy)
81 (run 'hg update' to get a working copy)
82 $ hg log -G
82 $ hg log -G
83 o changeset: 1:20759b6926ce
83 o changeset: 1:20759b6926ce
84 | bookmark: scratch/mybranch
84 | bookmark: scratch/mybranch
85 | tag: tip
85 | tag: tip
86 | user: test
86 | user: test
87 | date: Thu Jan 01 00:00:00 1970 +0000
87 | date: Thu Jan 01 00:00:00 1970 +0000
88 | summary: scratchcommit
88 | summary: scratchcommit
89 |
89 |
90 @ changeset: 0:67145f466344
90 @ changeset: 0:67145f466344
91 user: test
91 user: test
92 date: Thu Jan 01 00:00:00 1970 +0000
92 date: Thu Jan 01 00:00:00 1970 +0000
93 summary: initialcommit
93 summary: initialcommit
94
94
95 $ cd ..
95 $ cd ..
96
96
97 Push to non-scratch bookmark
97 Push to non-scratch bookmark
98
98
99 $ cd client
99 $ cd client
100 $ hg up 0
100 $ hg up 0
101 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
101 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
102 $ mkcommit newcommit
102 $ mkcommit newcommit
103 created new head
103 created new head
104 $ hg push -r .
104 $ hg push -r .
105 pushing to ssh://user@dummy/repo
105 pushing to ssh://user@dummy/repo
106 searching for changes
106 searching for changes
107 remote: adding changesets
107 remote: adding changesets
108 remote: adding manifests
108 remote: adding manifests
109 remote: adding file changes
109 remote: adding file changes
110 remote: added 1 changesets with 1 changes to 1 files
110 remote: added 1 changesets with 1 changes to 1 files
111 $ hg log -G -T '{desc} {phase} {bookmarks}'
111 $ hg log -G -T '{desc} {phase} {bookmarks}'
112 @ newcommit public
112 @ newcommit public
113 |
113 |
114 | o scratchcommit draft scratch/mybranch
114 | o scratchcommit draft scratch/mybranch
115 |/
115 |/
116 o initialcommit public
116 o initialcommit public
117
117
118
118
119 Push to scratch branch
119 Push to scratch branch
120 $ cd ../client2
120 $ cd ../client2
121 $ hg up -q scratch/mybranch
121 $ hg up -q scratch/mybranch
122 $ mkcommit 'new scratch commit'
122 $ mkcommit 'new scratch commit'
123 $ hg push -r . -B scratch/mybranch
123 $ hg push -r . -B scratch/mybranch
124 pushing to ssh://user@dummy/repo
124 pushing to ssh://user@dummy/repo
125 searching for changes
125 searching for changes
126 remote: pushing 2 commits:
126 remote: pushing 2 commits:
127 remote: 20759b6926ce scratchcommit
127 remote: 20759b6926ce scratchcommit
128 remote: 1de1d7d92f89 new scratch commit
128 remote: 1de1d7d92f89 new scratch commit
129 $ hg log -G -T '{desc} {phase} {bookmarks}'
129 $ hg log -G -T '{desc} {phase} {bookmarks}'
130 @ new scratch commit draft scratch/mybranch
130 @ new scratch commit draft scratch/mybranch
131 |
131 |
132 o scratchcommit draft
132 o scratchcommit draft
133 |
133 |
134 o initialcommit public
134 o initialcommit public
135
135
136 $ scratchnodes
136 $ scratchnodes
137 1de1d7d92f8965260391d0513fe8a8d5973d3042 bed63daed3beba97fff2e819a148cf415c217a85
137 1de1d7d92f8965260391d0513fe8a8d5973d3042 bed63daed3beba97fff2e819a148cf415c217a85
138 20759b6926ce827d5a8c73eb1fa9726d6f7defb2 bed63daed3beba97fff2e819a148cf415c217a85
138 20759b6926ce827d5a8c73eb1fa9726d6f7defb2 bed63daed3beba97fff2e819a148cf415c217a85
139
139
140 $ scratchbookmarks
140 $ scratchbookmarks
141 scratch/mybranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
141 scratch/mybranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
142
142
143 Push scratch bookmark with no new revs
143 Push scratch bookmark with no new revs
144 $ hg push -r . -B scratch/anotherbranch
144 $ hg push -r . -B scratch/anotherbranch
145 pushing to ssh://user@dummy/repo
145 pushing to ssh://user@dummy/repo
146 searching for changes
146 searching for changes
147 remote: pushing 2 commits:
147 remote: pushing 2 commits:
148 remote: 20759b6926ce scratchcommit
148 remote: 20759b6926ce scratchcommit
149 remote: 1de1d7d92f89 new scratch commit
149 remote: 1de1d7d92f89 new scratch commit
150 $ hg log -G -T '{desc} {phase} {bookmarks}'
150 $ hg log -G -T '{desc} {phase} {bookmarks}'
151 @ new scratch commit draft scratch/anotherbranch scratch/mybranch
151 @ new scratch commit draft scratch/anotherbranch scratch/mybranch
152 |
152 |
153 o scratchcommit draft
153 o scratchcommit draft
154 |
154 |
155 o initialcommit public
155 o initialcommit public
156
156
157 $ scratchbookmarks
157 $ scratchbookmarks
158 scratch/anotherbranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
158 scratch/anotherbranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
159 scratch/mybranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
159 scratch/mybranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
160
160
161 Pull scratch and non-scratch bookmark at the same time
161 Pull scratch and non-scratch bookmark at the same time
162
162
163 $ hg -R ../repo book newbook
163 $ hg -R ../repo book newbook
164 $ cd ../client
164 $ cd ../client
165 $ hg pull -B newbook -B scratch/mybranch --traceback
165 $ hg pull -B newbook -B scratch/mybranch --traceback
166 pulling from ssh://user@dummy/repo
166 pulling from ssh://user@dummy/repo
167 searching for changes
167 searching for changes
168 adding changesets
168 adding changesets
169 adding manifests
169 adding manifests
170 adding file changes
170 adding file changes
171 added 1 changesets with 1 changes to 2 files
171 added 1 changesets with 1 changes to 2 files
172 adding remote bookmark newbook
172 adding remote bookmark newbook
173 new changesets 1de1d7d92f89
173 new changesets 1de1d7d92f89
174 (run 'hg update' to get a working copy)
174 (run 'hg update' to get a working copy)
175 $ hg log -G -T '{desc} {phase} {bookmarks}'
175 $ hg log -G -T '{desc} {phase} {bookmarks}'
176 o new scratch commit draft scratch/mybranch
176 o new scratch commit draft scratch/mybranch
177 |
177 |
178 | @ newcommit public
178 | @ newcommit public
179 | |
179 | |
180 o | scratchcommit draft
180 o | scratchcommit draft
181 |/
181 |/
182 o initialcommit public
182 o initialcommit public
183
183
184
184
185 Push scratch revision without bookmark with --bundle-store
185 Push scratch revision without bookmark with --bundle-store
186
186
187 $ hg up -q tip
187 $ hg up -q tip
188 $ mkcommit scratchcommitnobook
188 $ mkcommit scratchcommitnobook
189 $ hg log -G -T '{desc} {phase} {bookmarks}'
189 $ hg log -G -T '{desc} {phase} {bookmarks}'
190 @ scratchcommitnobook draft
190 @ scratchcommitnobook draft
191 |
191 |
192 o new scratch commit draft scratch/mybranch
192 o new scratch commit draft scratch/mybranch
193 |
193 |
194 | o newcommit public
194 | o newcommit public
195 | |
195 | |
196 o | scratchcommit draft
196 o | scratchcommit draft
197 |/
197 |/
198 o initialcommit public
198 o initialcommit public
199
199
200 $ hg push -r . --bundle-store
200 $ hg push -r . --bundle-store
201 pushing to ssh://user@dummy/repo
201 pushing to ssh://user@dummy/repo
202 searching for changes
202 searching for changes
203 remote: pushing 3 commits:
203 remote: pushing 3 commits:
204 remote: 20759b6926ce scratchcommit
204 remote: 20759b6926ce scratchcommit
205 remote: 1de1d7d92f89 new scratch commit
205 remote: 1de1d7d92f89 new scratch commit
206 remote: 2b5d271c7e0d scratchcommitnobook
206 remote: 2b5d271c7e0d scratchcommitnobook
207 $ hg -R ../repo log -G -T '{desc} {phase}'
207 $ hg -R ../repo log -G -T '{desc} {phase}'
208 o newcommit public
208 o newcommit public
209 |
209 |
210 o initialcommit public
210 o initialcommit public
211
211
212
212
213 $ scratchnodes
213 $ scratchnodes
214 1de1d7d92f8965260391d0513fe8a8d5973d3042 66fa08ff107451320512817bed42b7f467a1bec3
214 1de1d7d92f8965260391d0513fe8a8d5973d3042 66fa08ff107451320512817bed42b7f467a1bec3
215 20759b6926ce827d5a8c73eb1fa9726d6f7defb2 66fa08ff107451320512817bed42b7f467a1bec3
215 20759b6926ce827d5a8c73eb1fa9726d6f7defb2 66fa08ff107451320512817bed42b7f467a1bec3
216 2b5d271c7e0d25d811359a314d413ebcc75c9524 66fa08ff107451320512817bed42b7f467a1bec3
216 2b5d271c7e0d25d811359a314d413ebcc75c9524 66fa08ff107451320512817bed42b7f467a1bec3
217
217
218 Test with pushrebase
218 Test with pushrebase
219 $ mkcommit scratchcommitwithpushrebase
219 $ mkcommit scratchcommitwithpushrebase
220 $ hg push -r . -B scratch/mybranch
220 $ hg push -r . -B scratch/mybranch
221 pushing to ssh://user@dummy/repo
221 pushing to ssh://user@dummy/repo
222 searching for changes
222 searching for changes
223 remote: pushing 4 commits:
223 remote: pushing 4 commits:
224 remote: 20759b6926ce scratchcommit
224 remote: 20759b6926ce scratchcommit
225 remote: 1de1d7d92f89 new scratch commit
225 remote: 1de1d7d92f89 new scratch commit
226 remote: 2b5d271c7e0d scratchcommitnobook
226 remote: 2b5d271c7e0d scratchcommitnobook
227 remote: d8c4f54ab678 scratchcommitwithpushrebase
227 remote: d8c4f54ab678 scratchcommitwithpushrebase
228 $ hg -R ../repo log -G -T '{desc} {phase}'
228 $ hg -R ../repo log -G -T '{desc} {phase}'
229 o newcommit public
229 o newcommit public
230 |
230 |
231 o initialcommit public
231 o initialcommit public
232
232
233 $ scratchnodes
233 $ scratchnodes
234 1de1d7d92f8965260391d0513fe8a8d5973d3042 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
234 1de1d7d92f8965260391d0513fe8a8d5973d3042 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
235 20759b6926ce827d5a8c73eb1fa9726d6f7defb2 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
235 20759b6926ce827d5a8c73eb1fa9726d6f7defb2 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
236 2b5d271c7e0d25d811359a314d413ebcc75c9524 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
236 2b5d271c7e0d25d811359a314d413ebcc75c9524 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
237 d8c4f54ab678fd67cb90bb3f272a2dc6513a59a7 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
237 d8c4f54ab678fd67cb90bb3f272a2dc6513a59a7 e3cb2ac50f9e1e6a5ead3217fc21236c84af4397
238
238
239 Change the order of pushrebase and infinitepush
239 Change the order of pushrebase and infinitepush
240 $ mkcommit scratchcommitwithpushrebase2
240 $ mkcommit scratchcommitwithpushrebase2
241 $ hg push -r . -B scratch/mybranch
241 $ hg push -r . -B scratch/mybranch
242 pushing to ssh://user@dummy/repo
242 pushing to ssh://user@dummy/repo
243 searching for changes
243 searching for changes
244 remote: pushing 5 commits:
244 remote: pushing 5 commits:
245 remote: 20759b6926ce scratchcommit
245 remote: 20759b6926ce scratchcommit
246 remote: 1de1d7d92f89 new scratch commit
246 remote: 1de1d7d92f89 new scratch commit
247 remote: 2b5d271c7e0d scratchcommitnobook
247 remote: 2b5d271c7e0d scratchcommitnobook
248 remote: d8c4f54ab678 scratchcommitwithpushrebase
248 remote: d8c4f54ab678 scratchcommitwithpushrebase
249 remote: 6c10d49fe927 scratchcommitwithpushrebase2
249 remote: 6c10d49fe927 scratchcommitwithpushrebase2
250 $ hg -R ../repo log -G -T '{desc} {phase}'
250 $ hg -R ../repo log -G -T '{desc} {phase}'
251 o newcommit public
251 o newcommit public
252 |
252 |
253 o initialcommit public
253 o initialcommit public
254
254
255 $ scratchnodes
255 $ scratchnodes
256 1de1d7d92f8965260391d0513fe8a8d5973d3042 cd0586065eaf8b483698518f5fc32531e36fd8e0
256 1de1d7d92f8965260391d0513fe8a8d5973d3042 cd0586065eaf8b483698518f5fc32531e36fd8e0
257 20759b6926ce827d5a8c73eb1fa9726d6f7defb2 cd0586065eaf8b483698518f5fc32531e36fd8e0
257 20759b6926ce827d5a8c73eb1fa9726d6f7defb2 cd0586065eaf8b483698518f5fc32531e36fd8e0
258 2b5d271c7e0d25d811359a314d413ebcc75c9524 cd0586065eaf8b483698518f5fc32531e36fd8e0
258 2b5d271c7e0d25d811359a314d413ebcc75c9524 cd0586065eaf8b483698518f5fc32531e36fd8e0
259 6c10d49fe92751666c40263f96721b918170d3da cd0586065eaf8b483698518f5fc32531e36fd8e0
259 6c10d49fe92751666c40263f96721b918170d3da cd0586065eaf8b483698518f5fc32531e36fd8e0
260 d8c4f54ab678fd67cb90bb3f272a2dc6513a59a7 cd0586065eaf8b483698518f5fc32531e36fd8e0
260 d8c4f54ab678fd67cb90bb3f272a2dc6513a59a7 cd0586065eaf8b483698518f5fc32531e36fd8e0
261
261
262 Non-fastforward scratch bookmark push
262 Non-fastforward scratch bookmark push
263
263
264 $ hg log -GT "{rev}:{node} {desc}\n"
264 $ hg log -GT "{rev}:{node} {desc}\n"
265 @ 6:6c10d49fe92751666c40263f96721b918170d3da scratchcommitwithpushrebase2
265 @ 6:6c10d49fe92751666c40263f96721b918170d3da scratchcommitwithpushrebase2
266 |
266 |
267 o 5:d8c4f54ab678fd67cb90bb3f272a2dc6513a59a7 scratchcommitwithpushrebase
267 o 5:d8c4f54ab678fd67cb90bb3f272a2dc6513a59a7 scratchcommitwithpushrebase
268 |
268 |
269 o 4:2b5d271c7e0d25d811359a314d413ebcc75c9524 scratchcommitnobook
269 o 4:2b5d271c7e0d25d811359a314d413ebcc75c9524 scratchcommitnobook
270 |
270 |
271 o 3:1de1d7d92f8965260391d0513fe8a8d5973d3042 new scratch commit
271 o 3:1de1d7d92f8965260391d0513fe8a8d5973d3042 new scratch commit
272 |
272 |
273 | o 2:91894e11e8255bf41aa5434b7b98e8b2aa2786eb newcommit
273 | o 2:91894e11e8255bf41aa5434b7b98e8b2aa2786eb newcommit
274 | |
274 | |
275 o | 1:20759b6926ce827d5a8c73eb1fa9726d6f7defb2 scratchcommit
275 o | 1:20759b6926ce827d5a8c73eb1fa9726d6f7defb2 scratchcommit
276 |/
276 |/
277 o 0:67145f4663446a9580364f70034fea6e21293b6f initialcommit
277 o 0:67145f4663446a9580364f70034fea6e21293b6f initialcommit
278
278
279 $ hg up 6c10d49fe927
279 $ hg up 6c10d49fe927
280 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
280 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
281 $ echo 1 > amend
281 $ echo 1 > amend
282 $ hg add amend
282 $ hg add amend
283 $ hg ci --amend -m 'scratch amended commit'
283 $ hg ci --amend -m 'scratch amended commit'
284 saved backup bundle to $TESTTMP/client/.hg/strip-backup/6c10d49fe927-c99ffec5-amend.hg (glob)
284 saved backup bundle to $TESTTMP/client/.hg/strip-backup/6c10d49fe927-c99ffec5-amend.hg
285 $ hg log -G -T '{desc} {phase} {bookmarks}'
285 $ hg log -G -T '{desc} {phase} {bookmarks}'
286 @ scratch amended commit draft scratch/mybranch
286 @ scratch amended commit draft scratch/mybranch
287 |
287 |
288 o scratchcommitwithpushrebase draft
288 o scratchcommitwithpushrebase draft
289 |
289 |
290 o scratchcommitnobook draft
290 o scratchcommitnobook draft
291 |
291 |
292 o new scratch commit draft
292 o new scratch commit draft
293 |
293 |
294 | o newcommit public
294 | o newcommit public
295 | |
295 | |
296 o | scratchcommit draft
296 o | scratchcommit draft
297 |/
297 |/
298 o initialcommit public
298 o initialcommit public
299
299
300
300
301 $ scratchbookmarks
301 $ scratchbookmarks
302 scratch/anotherbranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
302 scratch/anotherbranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
303 scratch/mybranch 6c10d49fe92751666c40263f96721b918170d3da
303 scratch/mybranch 6c10d49fe92751666c40263f96721b918170d3da
304 $ hg push -r . -B scratch/mybranch
304 $ hg push -r . -B scratch/mybranch
305 pushing to ssh://user@dummy/repo
305 pushing to ssh://user@dummy/repo
306 searching for changes
306 searching for changes
307 remote: pushing 5 commits:
307 remote: pushing 5 commits:
308 remote: 20759b6926ce scratchcommit
308 remote: 20759b6926ce scratchcommit
309 remote: 1de1d7d92f89 new scratch commit
309 remote: 1de1d7d92f89 new scratch commit
310 remote: 2b5d271c7e0d scratchcommitnobook
310 remote: 2b5d271c7e0d scratchcommitnobook
311 remote: d8c4f54ab678 scratchcommitwithpushrebase
311 remote: d8c4f54ab678 scratchcommitwithpushrebase
312 remote: 8872775dd97a scratch amended commit
312 remote: 8872775dd97a scratch amended commit
313 $ scratchbookmarks
313 $ scratchbookmarks
314 scratch/anotherbranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
314 scratch/anotherbranch 1de1d7d92f8965260391d0513fe8a8d5973d3042
315 scratch/mybranch 8872775dd97a750e1533dc1fbbca665644b32547
315 scratch/mybranch 8872775dd97a750e1533dc1fbbca665644b32547
316 $ hg log -G -T '{desc} {phase} {bookmarks}'
316 $ hg log -G -T '{desc} {phase} {bookmarks}'
317 @ scratch amended commit draft scratch/mybranch
317 @ scratch amended commit draft scratch/mybranch
318 |
318 |
319 o scratchcommitwithpushrebase draft
319 o scratchcommitwithpushrebase draft
320 |
320 |
321 o scratchcommitnobook draft
321 o scratchcommitnobook draft
322 |
322 |
323 o new scratch commit draft
323 o new scratch commit draft
324 |
324 |
325 | o newcommit public
325 | o newcommit public
326 | |
326 | |
327 o | scratchcommit draft
327 o | scratchcommit draft
328 |/
328 |/
329 o initialcommit public
329 o initialcommit public
330
330
331 Check that push path is not ignored. Add new path to the hgrc
331 Check that push path is not ignored. Add new path to the hgrc
332 $ cat >> .hg/hgrc << EOF
332 $ cat >> .hg/hgrc << EOF
333 > [paths]
333 > [paths]
334 > peer=ssh://user@dummy/client2
334 > peer=ssh://user@dummy/client2
335 > EOF
335 > EOF
336
336
337 Checkout last non-scrath commit
337 Checkout last non-scrath commit
338 $ hg up 91894e11e8255
338 $ hg up 91894e11e8255
339 1 files updated, 0 files merged, 6 files removed, 0 files unresolved
339 1 files updated, 0 files merged, 6 files removed, 0 files unresolved
340 $ mkcommit peercommit
340 $ mkcommit peercommit
341 Use --force because this push creates new head
341 Use --force because this push creates new head
342 $ hg push peer -r . -f
342 $ hg push peer -r . -f
343 pushing to ssh://user@dummy/client2
343 pushing to ssh://user@dummy/client2
344 searching for changes
344 searching for changes
345 remote: adding changesets
345 remote: adding changesets
346 remote: adding manifests
346 remote: adding manifests
347 remote: adding file changes
347 remote: adding file changes
348 remote: added 2 changesets with 2 changes to 2 files (+1 heads)
348 remote: added 2 changesets with 2 changes to 2 files (+1 heads)
349 $ hg -R ../repo log -G -T '{desc} {phase} {bookmarks}'
349 $ hg -R ../repo log -G -T '{desc} {phase} {bookmarks}'
350 o newcommit public
350 o newcommit public
351 |
351 |
352 o initialcommit public
352 o initialcommit public
353
353
354 $ hg -R ../client2 log -G -T '{desc} {phase} {bookmarks}'
354 $ hg -R ../client2 log -G -T '{desc} {phase} {bookmarks}'
355 o peercommit public
355 o peercommit public
356 |
356 |
357 o newcommit public
357 o newcommit public
358 |
358 |
359 | @ new scratch commit draft scratch/anotherbranch scratch/mybranch
359 | @ new scratch commit draft scratch/anotherbranch scratch/mybranch
360 | |
360 | |
361 | o scratchcommit draft
361 | o scratchcommit draft
362 |/
362 |/
363 o initialcommit public
363 o initialcommit public
364
364
General Comments 0
You need to be logged in to leave comments. Login now