comparison tests/test-branches @ 7006:92d44ec32430

branch: added more support for named branches hg branch now has a -C (--clean) option, to reset the current (dirstate) branch to the branch of the last commit (first parent).
author Sune Foldager <cryo@cyanite.org>
date Mon, 08 Sep 2008 12:55:27 +0200
parents 7d6622eaad08
children 405cacb06745
comparison
equal deleted inserted replaced
7005:7739b61897df 7006:92d44ec32430
8 8
9 echo 'a' >a 9 echo 'a' >a
10 hg add a 10 hg add a
11 hg branch a 11 hg branch a
12 hg commit -d '1 0' -u test -m "Adding a branch" 12 hg commit -d '1 0' -u test -m "Adding a branch"
13
14 hg branch q
15 echo 'aa' >a
16 hg branch -C
17 hg commit -d '2 0' -u test -m "Adding to a branch"
13 18
14 hg update -C 0 19 hg update -C 0
15 echo 'b' >b 20 echo 'b' >b
16 hg add b 21 hg add b
17 hg branch b 22 hg branch b