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