Show More
@@ -855,6 +855,8 b' def branch(ui, repo, label=None, **opts)' | |||
|
855 | 855 | hint=_("use 'hg update' to switch to it")) |
|
856 | 856 | repo.dirstate.setbranch(label) |
|
857 | 857 | ui.status(_('marked working directory as branch %s\n') % label) |
|
858 | ui.status(_('(branches are permanent and global, ' | |
|
859 | 'did you want a bookmark?)\n')) | |
|
858 | 860 | else: |
|
859 | 861 | ui.write("%s\n" % repo.dirstate.branch()) |
|
860 | 862 |
@@ -1360,6 +1360,7 b' Branch acl tests setup' | |||
|
1360 | 1360 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1361 | 1361 | $ hg branch foobar |
|
1362 | 1362 | marked working directory as branch foobar |
|
1363 | (branches are permanent and global, did you want a bookmark?) | |
|
1363 | 1364 | $ hg commit -m 'create foobar' |
|
1364 | 1365 | $ echo 'foo contents' > abc.txt |
|
1365 | 1366 | $ hg add abc.txt |
@@ -225,11 +225,13 b' named branches' | |||
|
225 | 225 | adding default |
|
226 | 226 | $ hg branch branch1 |
|
227 | 227 | marked working directory as branch branch1 |
|
228 | (branches are permanent and global, did you want a bookmark?) | |
|
228 | 229 | $ echo branch1 > file1 |
|
229 | 230 | $ hg ci -d '1 0' -Am file1 |
|
230 | 231 | adding file1 |
|
231 | 232 | $ hg branch branch2 |
|
232 | 233 | marked working directory as branch branch2 |
|
234 | (branches are permanent and global, did you want a bookmark?) | |
|
233 | 235 | $ echo branch2 > file2 |
|
234 | 236 | $ hg ci -d '2 0' -Am file2 |
|
235 | 237 | adding file2 |
@@ -20,6 +20,7 b'' | |||
|
20 | 20 | $ hg add a |
|
21 | 21 | $ hg branch a |
|
22 | 22 | marked working directory as branch a |
|
23 | (branches are permanent and global, did you want a bookmark?) | |
|
23 | 24 | $ hg commit -m "Adding a branch" |
|
24 | 25 | $ heads |
|
25 | 26 | 1: Adding a branch (a) |
@@ -36,6 +37,7 b'' | |||
|
36 | 37 | $ hg add b |
|
37 | 38 | $ hg branch b |
|
38 | 39 | marked working directory as branch b |
|
40 | (branches are permanent and global, did you want a bookmark?) | |
|
39 | 41 | $ hg commit -m "Adding b branch" |
|
40 | 42 | $ heads |
|
41 | 43 | 2: Adding b branch (b) |
@@ -117,6 +119,7 b'' | |||
|
117 | 119 | $ hg add c |
|
118 | 120 | $ hg branch c |
|
119 | 121 | marked working directory as branch c |
|
122 | (branches are permanent and global, did you want a bookmark?) | |
|
120 | 123 | $ hg commit -m "Adding c branch" |
|
121 | 124 | $ heads |
|
122 | 125 | 7: Adding c branch (c) |
@@ -287,6 +290,7 b' Init: no msg' | |||
|
287 | 290 | |
|
288 | 291 | $ hg branch b |
|
289 | 292 | marked working directory as branch b |
|
293 | (branches are permanent and global, did you want a bookmark?) | |
|
290 | 294 | $ echo 1 > b |
|
291 | 295 | $ hg ci -Am "b2: Initial root for branch b" |
|
292 | 296 | adding b |
@@ -298,6 +302,7 b' Case NN: msg' | |||
|
298 | 302 | $ hg up -q null |
|
299 | 303 | $ hg branch -f b |
|
300 | 304 | marked working directory as branch b |
|
305 | (branches are permanent and global, did you want a bookmark?) | |
|
301 | 306 | $ echo 1 > bb |
|
302 | 307 | $ hg ci -Am "b4 (NN): new topo root for branch b" |
|
303 | 308 | adding bb |
@@ -312,6 +317,7 b' Case BN: msg' | |||
|
312 | 317 | |
|
313 | 318 | $ hg branch -f default |
|
314 | 319 | marked working directory as branch default |
|
320 | (branches are permanent and global, did you want a bookmark?) | |
|
315 | 321 | $ echo 1 > aa |
|
316 | 322 | $ hg ci -Am "a6 (BN): new branch root" |
|
317 | 323 | adding aa |
@@ -331,6 +337,7 b' Case BB: msg' | |||
|
331 | 337 | $ hg merge -q 3 |
|
332 | 338 | $ hg branch -f default |
|
333 | 339 | marked working directory as branch default |
|
340 | (branches are permanent and global, did you want a bookmark?) | |
|
334 | 341 | $ hg ci -m "a8 (BB): weird new branch root" |
|
335 | 342 | created new head |
|
336 | 343 |
@@ -324,6 +324,7 b' create bundle with two heads' | |||
|
324 | 324 | $ echo y > tobundle/y |
|
325 | 325 | $ hg -R tobundle branch test |
|
326 | 326 | marked working directory as branch test |
|
327 | (branches are permanent and global, did you want a bookmark?) | |
|
327 | 328 | $ hg -R tobundle add tobundle/y |
|
328 | 329 | $ hg -R tobundle commit -m'y' |
|
329 | 330 | $ hg -R tobundle bundle tobundle.hg |
@@ -4,6 +4,7 b' test branch selection options' | |||
|
4 | 4 | $ cd branch |
|
5 | 5 | $ hg branch a |
|
6 | 6 | marked working directory as branch a |
|
7 | (branches are permanent and global, did you want a bookmark?) | |
|
7 | 8 | $ echo a > foo |
|
8 | 9 | $ hg ci -d '0 0' -Ama |
|
9 | 10 | adding foo |
@@ -13,6 +14,7 b' test branch selection options' | |||
|
13 | 14 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
14 | 15 | $ hg branch c |
|
15 | 16 | marked working directory as branch c |
|
17 | (branches are permanent and global, did you want a bookmark?) | |
|
16 | 18 | $ echo c > foo |
|
17 | 19 | $ hg ci -d '0 0' -mc |
|
18 | 20 | $ hg tag -l z |
@@ -29,18 +31,21 b' test branch selection options' | |||
|
29 | 31 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
30 | 32 | $ hg branch b |
|
31 | 33 | marked working directory as branch b |
|
34 | (branches are permanent and global, did you want a bookmark?) | |
|
32 | 35 | $ echo b > foo |
|
33 | 36 | $ hg ci -d '0 0' -mb |
|
34 | 37 | $ hg up 0 |
|
35 | 38 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
36 | 39 | $ hg --encoding utf-8 branch æ |
|
37 | 40 | marked working directory as branch \xc3\xa6 (esc) |
|
41 | (branches are permanent and global, did you want a bookmark?) | |
|
38 | 42 |
$ |
|
39 | 43 | $ hg ci -d '0 0' -mae1 |
|
40 | 44 | $ hg up 0 |
|
41 | 45 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
42 | 46 | $ hg --encoding utf-8 branch -f æ |
|
43 | 47 | marked working directory as branch \xc3\xa6 (esc) |
|
48 | (branches are permanent and global, did you want a bookmark?) | |
|
44 | 49 |
$ |
|
45 | 50 | $ hg ci -d '0 0' -mae2 |
|
46 | 51 | created new head |
@@ -48,6 +53,7 b' test branch selection options' | |||
|
48 | 53 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
49 | 54 | $ hg branch -f b |
|
50 | 55 | marked working directory as branch b |
|
56 | (branches are permanent and global, did you want a bookmark?) | |
|
51 | 57 | $ echo b2 > foo |
|
52 | 58 | $ hg ci -d '0 0' -mb2 |
|
53 | 59 | created new head |
@@ -14,6 +14,7 b' Create a branch with the same name as th' | |||
|
14 | 14 | |
|
15 | 15 | $ hg branch branchortag |
|
16 | 16 | marked working directory as branch branchortag |
|
17 | (branches are permanent and global, did you want a bookmark?) | |
|
17 | 18 | $ hg ci -m 'Create a branch with the same name as a tag.' |
|
18 | 19 | |
|
19 | 20 | This is what we have: |
@@ -8,10 +8,12 b'' | |||
|
8 | 8 | $ hg add a |
|
9 | 9 | $ hg branch a |
|
10 | 10 | marked working directory as branch a |
|
11 | (branches are permanent and global, did you want a bookmark?) | |
|
11 | 12 | $ hg commit -d '1 0' -m "Adding a branch" |
|
12 | 13 | |
|
13 | 14 | $ hg branch q |
|
14 | 15 | marked working directory as branch q |
|
16 | (branches are permanent and global, did you want a bookmark?) | |
|
15 | 17 | $ echo 'aa' >a |
|
16 | 18 | $ hg branch -C |
|
17 | 19 | reset working directory to branch a |
@@ -23,6 +25,7 b'' | |||
|
23 | 25 | $ hg add b |
|
24 | 26 | $ hg branch b |
|
25 | 27 | marked working directory as branch b |
|
28 | (branches are permanent and global, did you want a bookmark?) | |
|
26 | 29 | $ hg commit -d '2 0' -m "Adding b branch" |
|
27 | 30 | |
|
28 | 31 | $ echo 'bh1' >bh1 |
@@ -39,6 +42,7 b'' | |||
|
39 | 42 | $ hg add c |
|
40 | 43 | $ hg branch c |
|
41 | 44 | marked working directory as branch c |
|
45 | (branches are permanent and global, did you want a bookmark?) | |
|
42 | 46 | $ hg commit -d '5 0' -m "Adding c branch" |
|
43 | 47 | |
|
44 | 48 | $ hg branch tip |
@@ -55,6 +59,7 b'' | |||
|
55 | 59 | $ hg add d |
|
56 | 60 | $ hg branch 'a branch name much longer than the default justification used by branches' |
|
57 | 61 | marked working directory as branch a branch name much longer than the default justification used by branches |
|
62 | (branches are permanent and global, did you want a bookmark?) | |
|
58 | 63 | $ hg commit -d '6 0' -m "Adding d branch" |
|
59 | 64 | |
|
60 | 65 | $ hg branches |
@@ -6,6 +6,7 b'' | |||
|
6 | 6 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
7 | 7 | $ hg branch mine |
|
8 | 8 | marked working directory as branch mine |
|
9 | (branches are permanent and global, did you want a bookmark?) | |
|
9 | 10 | $ echo hello > world |
|
10 | 11 | $ hg commit -Am hello |
|
11 | 12 | adding world |
@@ -13,6 +14,7 b'' | |||
|
13 | 14 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
14 | 15 | $ hg branch other |
|
15 | 16 | marked working directory as branch other |
|
17 | (branches are permanent and global, did you want a bookmark?) | |
|
16 | 18 | $ echo good > bye |
|
17 | 19 | $ hg commit -Am other |
|
18 | 20 | adding bye |
@@ -132,6 +132,7 b' Adding some more history to repo a:' | |||
|
132 | 132 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
133 | 133 | $ hg branch stable |
|
134 | 134 | marked working directory as branch stable |
|
135 | (branches are permanent and global, did you want a bookmark?) | |
|
135 | 136 | $ echo some text >a |
|
136 | 137 | $ hg ci -m "starting branch stable" |
|
137 | 138 | $ hg tag ref2 |
@@ -31,6 +31,7 b' add initial changesets' | |||
|
31 | 31 | commit bug fixes on bug fix branch |
|
32 | 32 | $ hg branch fixes |
|
33 | 33 | marked working directory as branch fixes |
|
34 | (branches are permanent and global, did you want a bookmark?) | |
|
34 | 35 | $ echo fix1 > bugfix |
|
35 | 36 | $ echo fix1 >> file1 |
|
36 | 37 | $ hg ci -Am"fix 1" |
@@ -52,6 +53,7 b' transplant bug fixes onto release branch' | |||
|
52 | 53 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
53 | 54 | $ hg branch release |
|
54 | 55 | marked working directory as branch release |
|
56 | (branches are permanent and global, did you want a bookmark?) | |
|
55 | 57 | $ hg transplant 2 3 |
|
56 | 58 | applying [0-9a-f]{12} (re) |
|
57 | 59 | [0-9a-f]{12} transplanted to [0-9a-f]{12} (re) |
@@ -15,6 +15,7 b' Add a merge with one parent in the same ' | |||
|
15 | 15 | $ hg up -qC 0 |
|
16 | 16 | $ hg branch branch0 |
|
17 | 17 | marked working directory as branch branch0 |
|
18 | (branches are permanent and global, did you want a bookmark?) | |
|
18 | 19 | $ echo b > b |
|
19 | 20 | $ hg ci -qAm addb |
|
20 | 21 | $ hg up -qC |
@@ -52,11 +53,13 b' Add a merge with both parents and child ' | |||
|
52 | 53 | $ cd source |
|
53 | 54 | $ hg branch branch1 |
|
54 | 55 | marked working directory as branch branch1 |
|
56 | (branches are permanent and global, did you want a bookmark?) | |
|
55 | 57 | $ echo a > file1 |
|
56 | 58 | $ hg ci -qAm c1 |
|
57 | 59 | $ hg up -qC mergeab |
|
58 | 60 | $ hg branch branch2 |
|
59 | 61 | marked working directory as branch branch2 |
|
62 | (branches are permanent and global, did you want a bookmark?) | |
|
60 | 63 | $ echo a > file2 |
|
61 | 64 | $ hg ci -qAm c2 |
|
62 | 65 | $ hg merge branch1 |
@@ -64,6 +67,7 b' Add a merge with both parents and child ' | |||
|
64 | 67 | (branch merge, don't forget to commit) |
|
65 | 68 | $ hg branch branch3 |
|
66 | 69 | marked working directory as branch branch3 |
|
70 | (branches are permanent and global, did you want a bookmark?) | |
|
67 | 71 | $ hg ci -qAm c3 |
|
68 | 72 | $ cd .. |
|
69 | 73 |
@@ -11,6 +11,7 b'' | |||
|
11 | 11 | adding a |
|
12 | 12 | $ hg branch brancha |
|
13 | 13 | marked working directory as branch brancha |
|
14 | (branches are permanent and global, did you want a bookmark?) | |
|
14 | 15 | $ echo a >> a |
|
15 | 16 | $ hg ci -m a1 -d '2 0' |
|
16 | 17 | $ echo a >> a |
@@ -21,6 +22,7 b'' | |||
|
21 | 22 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
22 | 23 | $ hg branch branchb |
|
23 | 24 | marked working directory as branch branchb |
|
25 | (branches are permanent and global, did you want a bookmark?) | |
|
24 | 26 | $ echo b >> b |
|
25 | 27 | $ hg ci -Am b0 -d '6 0' |
|
26 | 28 | adding b |
@@ -299,6 +299,7 b' test branch closing revision pruning if ' | |||
|
299 | 299 | $ cd branchpruning |
|
300 | 300 | $ hg branch foo |
|
301 | 301 | marked working directory as branch foo |
|
302 | (branches are permanent and global, did you want a bookmark?) | |
|
302 | 303 | $ echo a > a |
|
303 | 304 | $ hg ci -Am adda |
|
304 | 305 | adding a |
@@ -307,12 +308,14 b' test branch closing revision pruning if ' | |||
|
307 | 308 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
308 | 309 | $ hg branch empty |
|
309 | 310 | marked working directory as branch empty |
|
311 | (branches are permanent and global, did you want a bookmark?) | |
|
310 | 312 | $ hg ci -m emptybranch |
|
311 | 313 | $ hg ci --close-branch -m closeempty |
|
312 | 314 | $ hg up 0 |
|
313 | 315 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
314 | 316 | $ hg branch default |
|
315 | 317 | marked working directory as branch default |
|
318 | (branches are permanent and global, did you want a bookmark?) | |
|
316 | 319 | $ echo b > b |
|
317 | 320 | $ hg ci -Am addb |
|
318 | 321 | adding b |
@@ -115,12 +115,15 b' add branches/tags' | |||
|
115 | 115 | |
|
116 | 116 | $ hg branch $S |
|
117 | 117 | marked working directory as branch \xe7\x9f\xad\xe5\x90\x8d (esc) |
|
118 | (branches are permanent and global, did you want a bookmark?) | |
|
118 | 119 | $ hg tag $S |
|
119 | 120 | $ hg branch $M |
|
120 | 121 | marked working directory as branch MIDDLE_ |
|
122 | (branches are permanent and global, did you want a bookmark?) | |
|
121 | 123 | $ hg tag $M |
|
122 | 124 | $ hg branch $L |
|
123 | 125 | marked working directory as branch \xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d (esc) |
|
126 | (branches are permanent and global, did you want a bookmark?) | |
|
124 | 127 | $ hg tag $L |
|
125 | 128 | |
|
126 | 129 | check alignment of branches |
@@ -42,6 +42,7 b' these should work' | |||
|
42 | 42 | $ HGENCODING=latin-1 hg tag `cat latin-1-tag` |
|
43 | 43 | $ HGENCODING=latin-1 hg branch `cat latin-1-tag` |
|
44 | 44 | marked working directory as branch \xe9 (esc) |
|
45 | (branches are permanent and global, did you want a bookmark?) | |
|
45 | 46 | $ HGENCODING=latin-1 hg ci -m 'latin1 branch' |
|
46 | 47 | $ rm .hg/branch |
|
47 | 48 |
@@ -142,12 +142,14 b' test fetch with named branches' | |||
|
142 | 142 | adding a |
|
143 | 143 | $ hg -R nbase branch a |
|
144 | 144 | marked working directory as branch a |
|
145 | (branches are permanent and global, did you want a bookmark?) | |
|
145 | 146 | $ echo a > nbase/a |
|
146 | 147 | $ hg -R nbase ci -m a |
|
147 | 148 | $ hg -R nbase up -C 0 |
|
148 | 149 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
149 | 150 | $ hg -R nbase branch b |
|
150 | 151 | marked working directory as branch b |
|
152 | (branches are permanent and global, did you want a bookmark?) | |
|
151 | 153 | $ echo b > nbase/b |
|
152 | 154 | $ hg -R nbase ci -Am b |
|
153 | 155 | adding b |
@@ -316,6 +318,7 b' pull in change on different branch than ' | |||
|
316 | 318 | $ hg -R n1 ci -m next |
|
317 | 319 | $ hg -R n2 branch topic |
|
318 | 320 | marked working directory as branch topic |
|
321 | (branches are permanent and global, did you want a bookmark?) | |
|
319 | 322 | $ hg -R n2 fetch -m merge n1 |
|
320 | 323 | abort: working dir not at branch tip (use "hg update" to check out branch tip) |
|
321 | 324 | [255] |
@@ -334,11 +337,13 b' test fetch with inactive branches' | |||
|
334 | 337 | adding a |
|
335 | 338 | $ hg --cwd ib1 branch second |
|
336 | 339 | marked working directory as branch second |
|
340 | (branches are permanent and global, did you want a bookmark?) | |
|
337 | 341 | $ echo b > ib1/b |
|
338 | 342 | $ hg --cwd ib1 ci -Am onsecond |
|
339 | 343 | adding b |
|
340 | 344 | $ hg --cwd ib1 branch -f default |
|
341 | 345 | marked working directory as branch default |
|
346 | (branches are permanent and global, did you want a bookmark?) | |
|
342 | 347 | $ echo c > ib1/c |
|
343 | 348 | $ hg --cwd ib1 ci -Am newdefault |
|
344 | 349 | adding c |
@@ -20,6 +20,7 b' Set up the repo' | |||
|
20 | 20 | $ echo another > foo |
|
21 | 21 | $ hg branch stable |
|
22 | 22 | marked working directory as branch stable |
|
23 | (branches are permanent and global, did you want a bookmark?) | |
|
23 | 24 | $ hg ci -Ambranch |
|
24 | 25 | $ hg serve --config server.uncompressed=False -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
25 | 26 | $ cat hg.pid >> $DAEMON_PIDS |
@@ -6,6 +6,7 b'' | |||
|
6 | 6 | $ hg init a |
|
7 | 7 | $ hg --encoding utf-8 -R a branch æ |
|
8 | 8 | marked working directory as branch \xc3\xa6 (esc) |
|
9 | (branches are permanent and global, did you want a bookmark?) | |
|
9 | 10 |
$ |
|
10 | 11 | $ hg -R a ci -Am foo |
|
11 | 12 | adding foo |
@@ -19,6 +19,7 b'' | |||
|
19 | 19 | $ hg commit -m "No branch." |
|
20 | 20 | $ hg branch abranch |
|
21 | 21 | marked working directory as branch abranch |
|
22 | (branches are permanent and global, did you want a bookmark?) | |
|
22 | 23 | $ echo "Rev 2" >rev |
|
23 | 24 | $ hg commit -m "With branch." |
|
24 | 25 |
@@ -16,6 +16,7 b' Test --bypass with other options' | |||
|
16 | 16 | $ echo a >> a |
|
17 | 17 | $ hg branch foo |
|
18 | 18 | marked working directory as branch foo |
|
19 | (branches are permanent and global, did you want a bookmark?) | |
|
19 | 20 | $ hg ci -Am changea |
|
20 | 21 | $ hg export . > ../test.diff |
|
21 | 22 | $ hg up null |
@@ -11,6 +11,7 b' Initialize remote repo with branches:' | |||
|
11 | 11 | |
|
12 | 12 | $ hg branch br |
|
13 | 13 | marked working directory as branch br |
|
14 | (branches are permanent and global, did you want a bookmark?) | |
|
14 | 15 | $ hg ci -Amb |
|
15 | 16 | |
|
16 | 17 | $ echo c > c |
@@ -8,6 +8,7 b' http://mercurial.selenic.com/bts/issue61' | |||
|
8 | 8 | $ echo b > b |
|
9 | 9 | $ hg branch b |
|
10 | 10 | marked working directory as branch b |
|
11 | (branches are permanent and global, did you want a bookmark?) | |
|
11 | 12 | $ hg ci -Amb |
|
12 | 13 | adding b |
|
13 | 14 |
@@ -31,6 +31,7 b' Should not issue new head warning:' | |||
|
31 | 31 | $ echo crap > a |
|
32 | 32 | $ hg branch testing |
|
33 | 33 | marked working directory as branch testing |
|
34 | (branches are permanent and global, did you want a bookmark?) | |
|
34 | 35 | |
|
35 | 36 | Should not issue warning: |
|
36 | 37 |
@@ -1000,6 +1000,7 b' Test restricted mode with transplant -b' | |||
|
1000 | 1000 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1001 | 1001 | $ hg branch foo |
|
1002 | 1002 | marked working directory as branch foo |
|
1003 | (branches are permanent and global, did you want a bookmark?) | |
|
1003 | 1004 | $ mv a a.bak |
|
1004 | 1005 | $ echo foobranch > a |
|
1005 | 1006 | $ cat a.bak >> a |
@@ -627,6 +627,7 b' log -r tip --stat' | |||
|
627 | 627 | adding a |
|
628 | 628 | $ hg branch test |
|
629 | 629 | marked working directory as branch test |
|
630 | (branches are permanent and global, did you want a bookmark?) | |
|
630 | 631 | $ echo b > b |
|
631 | 632 | $ hg ci -A -m "commit on test" |
|
632 | 633 | adding b |
@@ -68,6 +68,7 b' hg update -C 8' | |||
|
68 | 68 | hg branch some-branch |
|
69 | 69 | $ hg branch some-branch |
|
70 | 70 | marked working directory as branch some-branch |
|
71 | (branches are permanent and global, did you want a bookmark?) | |
|
71 | 72 | hg commit |
|
72 | 73 | $ hgcommit -m 'started some-branch' |
|
73 | 74 | hg commit --close-branch |
@@ -84,6 +84,7 b' Should fail because there is only one he' | |||
|
84 | 84 | $ echo f >> a |
|
85 | 85 | $ hg branch foobranch |
|
86 | 86 | marked working directory as branch foobranch |
|
87 | (branches are permanent and global, did you want a bookmark?) | |
|
87 | 88 | $ hg commit -mf |
|
88 | 89 | |
|
89 | 90 | Should fail because merge with other branch: |
@@ -76,6 +76,7 b' qpush warning branchheads' | |||
|
76 | 76 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
77 | 77 | $ hg branch b |
|
78 | 78 | marked working directory as branch b |
|
79 | (branches are permanent and global, did you want a bookmark?) | |
|
79 | 80 | $ echo c > c |
|
80 | 81 | $ hg ci -Amc |
|
81 | 82 | adding c |
@@ -125,6 +126,7 b' Testing applied patches, push and --forc' | |||
|
125 | 126 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
126 | 127 | $ hg branch branch |
|
127 | 128 | marked working directory as branch branch |
|
129 | (branches are permanent and global, did you want a bookmark?) | |
|
128 | 130 | $ echo b > b |
|
129 | 131 | $ hg ci -Am addb |
|
130 | 132 | adding b |
@@ -9,11 +9,13 b'' | |||
|
9 | 9 | $ hg ci -m "initial" |
|
10 | 10 | $ hg branch foo |
|
11 | 11 | marked working directory as branch foo |
|
12 | (branches are permanent and global, did you want a bookmark?) | |
|
12 | 13 | $ hg branch |
|
13 | 14 | foo |
|
14 | 15 | $ hg ci -m "add branch name" |
|
15 | 16 | $ hg branch bar |
|
16 | 17 | marked working directory as branch bar |
|
18 | (branches are permanent and global, did you want a bookmark?) | |
|
17 | 19 | $ hg ci -m "change branch name" |
|
18 | 20 | |
|
19 | 21 | Branch shadowing: |
@@ -25,6 +27,7 b' Branch shadowing:' | |||
|
25 | 27 | |
|
26 | 28 | $ hg branch -f default |
|
27 | 29 | marked working directory as branch default |
|
30 | (branches are permanent and global, did you want a bookmark?) | |
|
28 | 31 | |
|
29 | 32 | $ hg ci -m "clear branch name" |
|
30 | 33 | created new head |
@@ -186,6 +189,7 b' Update with no arguments: tipmost revisi' | |||
|
186 | 189 | |
|
187 | 190 | $ hg branch foobar |
|
188 | 191 | marked working directory as branch foobar |
|
192 | (branches are permanent and global, did you want a bookmark?) | |
|
189 | 193 | |
|
190 | 194 | $ hg up |
|
191 | 195 | abort: branch foobar not found |
@@ -195,6 +199,7 b' Fastforward merge:' | |||
|
195 | 199 | |
|
196 | 200 | $ hg branch ff |
|
197 | 201 | marked working directory as branch ff |
|
202 | (branches are permanent and global, did you want a bookmark?) | |
|
198 | 203 | |
|
199 | 204 | $ echo ff > ff |
|
200 | 205 | $ hg ci -Am'fast forward' |
@@ -256,6 +261,7 b' Test merging, add 3 default heads and on' | |||
|
256 | 261 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
257 | 262 | $ hg branch test |
|
258 | 263 | marked working directory as branch test |
|
264 | (branches are permanent and global, did you want a bookmark?) | |
|
259 | 265 | $ echo e >> e |
|
260 | 266 | $ hg ci -Ame |
|
261 | 267 | adding e |
@@ -1922,6 +1922,7 b' test outgoing:' | |||
|
1922 | 1922 | |
|
1923 | 1923 | $ hg branch test |
|
1924 | 1924 | marked working directory as branch test |
|
1925 | (branches are permanent and global, did you want a bookmark?) | |
|
1925 | 1926 | |
|
1926 | 1927 | $ echo d > d |
|
1927 | 1928 | $ hg add d |
@@ -5,6 +5,7 b'' | |||
|
5 | 5 | adding foo |
|
6 | 6 | $ hg branch branchA |
|
7 | 7 | marked working directory as branch branchA |
|
8 | (branches are permanent and global, did you want a bookmark?) | |
|
8 | 9 | $ echo a1 > foo |
|
9 | 10 | $ hg ci -ma1 # 1 |
|
10 | 11 | |
@@ -32,6 +33,7 b' Create branch B:' | |||
|
32 | 33 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
33 | 34 | $ hg branch branchB |
|
34 | 35 | marked working directory as branch branchB |
|
36 | (branches are permanent and global, did you want a bookmark?) | |
|
35 | 37 | $ echo b1 > foo |
|
36 | 38 | $ hg ci -mb1 # 3 |
|
37 | 39 | |
@@ -139,6 +141,7 b' Make changes on new branch on tt' | |||
|
139 | 141 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
140 | 142 | $ hg branch branchC |
|
141 | 143 | marked working directory as branch branchC |
|
144 | (branches are permanent and global, did you want a bookmark?) | |
|
142 | 145 | $ echo b1 > bar |
|
143 | 146 | $ hg ci -Am "commit on branchC on tt" |
|
144 | 147 | adding bar |
@@ -393,6 +393,7 b' Check prepush logic with merged branches' | |||
|
393 | 393 | $ hg init j |
|
394 | 394 | $ hg -R j branch a |
|
395 | 395 | marked working directory as branch a |
|
396 | (branches are permanent and global, did you want a bookmark?) | |
|
396 | 397 | $ echo init > j/foo |
|
397 | 398 | $ hg -R j ci -Am init |
|
398 | 399 | adding foo |
@@ -403,6 +404,7 b' Check prepush logic with merged branches' | |||
|
403 | 404 | $ hg -R j ci -m a1 |
|
404 | 405 | $ hg -R k branch b |
|
405 | 406 | marked working directory as branch b |
|
407 | (branches are permanent and global, did you want a bookmark?) | |
|
406 | 408 | $ echo b > k/foo |
|
407 | 409 | $ hg -R k ci -m b |
|
408 | 410 | $ hg -R k up 0 |
@@ -466,11 +468,13 b' Check prepush with new branch head on fo' | |||
|
466 | 468 | $ cd n |
|
467 | 469 | $ hg branch A |
|
468 | 470 | marked working directory as branch A |
|
471 | (branches are permanent and global, did you want a bookmark?) | |
|
469 | 472 | $ echo a >a |
|
470 | 473 | $ hg ci -Ama |
|
471 | 474 | adding a |
|
472 | 475 | $ hg branch B |
|
473 | 476 | marked working directory as branch B |
|
477 | (branches are permanent and global, did you want a bookmark?) | |
|
474 | 478 | $ echo b >b |
|
475 | 479 | $ hg ci -Amb |
|
476 | 480 | adding b |
@@ -543,11 +547,13 b' Check prepush with new branch head on fo' | |||
|
543 | 547 | $ cd o |
|
544 | 548 | $ hg branch A |
|
545 | 549 | marked working directory as branch A |
|
550 | (branches are permanent and global, did you want a bookmark?) | |
|
546 | 551 | $ echo a >a |
|
547 | 552 | $ hg ci -Ama |
|
548 | 553 | adding a |
|
549 | 554 | $ hg branch B |
|
550 | 555 | marked working directory as branch B |
|
556 | (branches are permanent and global, did you want a bookmark?) | |
|
551 | 557 | $ echo b >b |
|
552 | 558 | $ hg ci -Amb |
|
553 | 559 | adding b |
@@ -629,6 +635,7 b' but child is on different branch:' | |||
|
629 | 635 | $ cd p |
|
630 | 636 | $ hg branch A |
|
631 | 637 | marked working directory as branch A |
|
638 | (branches are permanent and global, did you want a bookmark?) | |
|
632 | 639 | $ echo a0 >a |
|
633 | 640 | $ hg ci -Ama0 |
|
634 | 641 | adding a |
@@ -638,6 +645,7 b' but child is on different branch:' | |||
|
638 | 645 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
639 | 646 | $ hg branch B |
|
640 | 647 | marked working directory as branch B |
|
648 | (branches are permanent and global, did you want a bookmark?) | |
|
641 | 649 | $ echo b0 >b |
|
642 | 650 | $ hg ci -Amb0 |
|
643 | 651 | adding b |
@@ -652,6 +660,7 b' but child is on different branch:' | |||
|
652 | 660 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
653 | 661 | $ hg branch -f B |
|
654 | 662 | marked working directory as branch B |
|
663 | (branches are permanent and global, did you want a bookmark?) | |
|
655 | 664 | $ echo a3 >a |
|
656 | 665 | $ hg ci -ma3 |
|
657 | 666 | created new head |
@@ -659,6 +668,7 b' but child is on different branch:' | |||
|
659 | 668 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
660 | 669 | $ hg branch -f A |
|
661 | 670 | marked working directory as branch A |
|
671 | (branches are permanent and global, did you want a bookmark?) | |
|
662 | 672 | $ echo b3 >b |
|
663 | 673 | $ hg ci -mb3 |
|
664 | 674 | created new head |
@@ -17,6 +17,7 b'' | |||
|
17 | 17 | |
|
18 | 18 | $ hg branch branch1 |
|
19 | 19 | marked working directory as branch branch1 |
|
20 | (branches are permanent and global, did you want a bookmark?) | |
|
20 | 21 | $ hg ci -m 'branch1' |
|
21 | 22 | |
|
22 | 23 | $ echo b > b |
@@ -27,6 +28,7 b'' | |||
|
27 | 28 | |
|
28 | 29 | $ hg branch branch2 |
|
29 | 30 | marked working directory as branch branch2 |
|
31 | (branches are permanent and global, did you want a bookmark?) | |
|
30 | 32 | $ hg ci -m 'branch2' |
|
31 | 33 | |
|
32 | 34 | $ echo c > C |
@@ -37,6 +39,7 b'' | |||
|
37 | 39 | |
|
38 | 40 | $ hg branch -f branch2 |
|
39 | 41 | marked working directory as branch branch2 |
|
42 | (branches are permanent and global, did you want a bookmark?) | |
|
40 | 43 | $ echo d > d |
|
41 | 44 | $ hg ci -Am D |
|
42 | 45 | adding d |
@@ -51,6 +54,7 b'' | |||
|
51 | 54 | |
|
52 | 55 | $ hg branch branch3 |
|
53 | 56 | marked working directory as branch branch3 |
|
57 | (branches are permanent and global, did you want a bookmark?) | |
|
54 | 58 | $ hg ci -m 'branch3' |
|
55 | 59 | |
|
56 | 60 | $ echo f > f |
@@ -36,6 +36,7 b'' | |||
|
36 | 36 | |
|
37 | 37 | $ hg branch 'notdefault' |
|
38 | 38 | marked working directory as branch notdefault |
|
39 | (branches are permanent and global, did you want a bookmark?) | |
|
39 | 40 | $ echo F >> A |
|
40 | 41 | $ hg ci -m F |
|
41 | 42 |
@@ -452,12 +452,14 b' Interactions between collapse and keepbr' | |||
|
452 | 452 | |
|
453 | 453 | $ hg branch '1' |
|
454 | 454 | marked working directory as branch 1 |
|
455 | (branches are permanent and global, did you want a bookmark?) | |
|
455 | 456 | $ echo 'b' > b |
|
456 | 457 | $ hg ci -Am 'B' |
|
457 | 458 | adding b |
|
458 | 459 | |
|
459 | 460 | $ hg branch '2' |
|
460 | 461 | marked working directory as branch 2 |
|
462 | (branches are permanent and global, did you want a bookmark?) | |
|
461 | 463 | $ echo 'c' > c |
|
462 | 464 | $ hg ci -Am 'C' |
|
463 | 465 | adding c |
@@ -28,6 +28,7 b' Rebasing descendant onto ancestor across' | |||
|
28 | 28 | |
|
29 | 29 | $ hg branch dev |
|
30 | 30 | marked working directory as branch dev |
|
31 | (branches are permanent and global, did you want a bookmark?) | |
|
31 | 32 | |
|
32 | 33 | $ echo x > x |
|
33 | 34 |
@@ -894,6 +894,7 b' Abort early when a merge is in progress' | |||
|
894 | 894 | |
|
895 | 895 | $ hg branch thatbranch |
|
896 | 896 | marked working directory as branch thatbranch |
|
897 | (branches are permanent and global, did you want a bookmark?) | |
|
897 | 898 | |
|
898 | 899 | $ hg ci -m'new head' |
|
899 | 900 |
@@ -21,6 +21,7 b'' | |||
|
21 | 21 | |
|
22 | 22 | $ hg branch stable |
|
23 | 23 | marked working directory as branch stable |
|
24 | (branches are permanent and global, did you want a bookmark?) | |
|
24 | 25 | $ echo bar >> a |
|
25 | 26 | $ hg ci -qm2 |
|
26 | 27 |
@@ -15,22 +15,26 b'' | |||
|
15 | 15 | $ echo a > a |
|
16 | 16 | $ hg branch a |
|
17 | 17 | marked working directory as branch a |
|
18 | (branches are permanent and global, did you want a bookmark?) | |
|
18 | 19 | $ hg ci -Aqm0 |
|
19 | 20 | |
|
20 | 21 | $ echo b > b |
|
21 | 22 | $ hg branch b |
|
22 | 23 | marked working directory as branch b |
|
24 | (branches are permanent and global, did you want a bookmark?) | |
|
23 | 25 | $ hg ci -Aqm1 |
|
24 | 26 | |
|
25 | 27 | $ rm a |
|
26 | 28 | $ hg branch a-b-c- |
|
27 | 29 | marked working directory as branch a-b-c- |
|
30 | (branches are permanent and global, did you want a bookmark?) | |
|
28 | 31 | $ hg ci -Aqm2 -u Bob |
|
29 | 32 | |
|
30 | 33 | $ hg co 1 |
|
31 | 34 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
32 | 35 | $ hg branch +a+b+c+ |
|
33 | 36 | marked working directory as branch +a+b+c+ |
|
37 | (branches are permanent and global, did you want a bookmark?) | |
|
34 | 38 | $ hg ci -Aqm3 |
|
35 | 39 | |
|
36 | 40 | $ hg co 2 # interleave |
@@ -38,12 +42,14 b'' | |||
|
38 | 42 | $ echo bb > b |
|
39 | 43 | $ hg branch -- -a-b-c- |
|
40 | 44 | marked working directory as branch -a-b-c- |
|
45 | (branches are permanent and global, did you want a bookmark?) | |
|
41 | 46 | $ hg ci -Aqm4 -d "May 12 2005" |
|
42 | 47 | |
|
43 | 48 | $ hg co 3 |
|
44 | 49 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
45 | 50 | $ hg branch /a/b/c/ |
|
46 | 51 | marked working directory as branch /a/b/c/ |
|
52 | (branches are permanent and global, did you want a bookmark?) | |
|
47 | 53 | $ hg ci -Aqm"5 bug" |
|
48 | 54 | |
|
49 | 55 | $ hg merge 4 |
@@ -51,14 +57,17 b'' | |||
|
51 | 57 | (branch merge, don't forget to commit) |
|
52 | 58 | $ hg branch _a_b_c_ |
|
53 | 59 | marked working directory as branch _a_b_c_ |
|
60 | (branches are permanent and global, did you want a bookmark?) | |
|
54 | 61 | $ hg ci -Aqm"6 issue619" |
|
55 | 62 | |
|
56 | 63 | $ hg branch .a.b.c. |
|
57 | 64 | marked working directory as branch .a.b.c. |
|
65 | (branches are permanent and global, did you want a bookmark?) | |
|
58 | 66 | $ hg ci -Aqm7 |
|
59 | 67 | |
|
60 | 68 | $ hg branch all |
|
61 | 69 | marked working directory as branch all |
|
70 | (branches are permanent and global, did you want a bookmark?) | |
|
62 | 71 | $ hg ci --close-branch -Aqm8 |
|
63 | 72 | abort: can only close branch heads |
|
64 | 73 | [255] |
@@ -67,6 +76,7 b'' | |||
|
67 | 76 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
68 | 77 | $ hg branch é |
|
69 | 78 | marked working directory as branch \xc3\xa9 (esc) |
|
79 | (branches are permanent and global, did you want a bookmark?) | |
|
70 | 80 | $ hg ci -Aqm9 |
|
71 | 81 | |
|
72 | 82 | $ hg tag -r6 1.0 |
@@ -41,6 +41,7 b' Two changesets this time so we rollback ' | |||
|
41 | 41 | Test issue 902 (current branch is preserved) |
|
42 | 42 | $ hg branch test |
|
43 | 43 | marked working directory as branch test |
|
44 | (branches are permanent and global, did you want a bookmark?) | |
|
44 | 45 | $ hg rollback |
|
45 | 46 | repository tip rolled back to revision 0 (undo commit) |
|
46 | 47 | working directory now based on revision 0 |
@@ -56,6 +57,7 b' Test rollback of hg before issue 902 was' | |||
|
56 | 57 | $ hg commit -m "test3" |
|
57 | 58 | $ hg branch test |
|
58 | 59 | marked working directory as branch test |
|
60 | (branches are permanent and global, did you want a bookmark?) | |
|
59 | 61 | $ rm .hg/undo.branch |
|
60 | 62 | $ hg rollback |
|
61 | 63 | repository tip rolled back to revision 0 (undo commit) |
@@ -407,6 +407,7 b" shouldn't need merging" | |||
|
407 | 407 | adding a |
|
408 | 408 | $ hg branch br |
|
409 | 409 | marked working directory as branch br |
|
410 | (branches are permanent and global, did you want a bookmark?) | |
|
410 | 411 | $ echo a >> a |
|
411 | 412 | $ hg ci -m1 |
|
412 | 413 | $ hg up default |
@@ -457,6 +458,7 b" shouldn't need merging" | |||
|
457 | 458 | committing subrepository s |
|
458 | 459 | $ hg branch br |
|
459 | 460 | marked working directory as branch br |
|
461 | (branches are permanent and global, did you want a bookmark?) | |
|
460 | 462 | $ echo b > b |
|
461 | 463 | $ hg -R s up 3 |
|
462 | 464 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
@@ -205,6 +205,7 b' tag and branch using same name' | |||
|
205 | 205 | |
|
206 | 206 | $ hg branch tag-and-branch-same-name |
|
207 | 207 | marked working directory as branch tag-and-branch-same-name |
|
208 | (branches are permanent and global, did you want a bookmark?) | |
|
208 | 209 | $ hg ci -m"discouraged" |
|
209 | 210 | $ hg tag tag-and-branch-same-name |
|
210 | 211 | warning: tag tag-and-branch-same-name conflicts with existing branch name |
@@ -276,6 +277,7 b' tagging on an uncommitted merge (issue25' | |||
|
276 | 277 | $ hg co -q 0 |
|
277 | 278 | $ hg branch b1 |
|
278 | 279 | marked working directory as branch b1 |
|
280 | (branches are permanent and global, did you want a bookmark?) | |
|
279 | 281 | $ hg ci -m2 |
|
280 | 282 | $ hg up default |
|
281 | 283 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
General Comments 0
You need to be logged in to leave comments.
Login now