tests/test-newbranch
changeset 3502 8dc14d630b29
parent 3451 196baf20232b
child 3760 aeafd80c1e78
--- a/tests/test-newbranch	Tue Oct 24 17:49:48 2006 -0300
+++ b/tests/test-newbranch	Tue Oct 24 16:49:36 2006 -0500
@@ -2,27 +2,32 @@
 
 hg init t
 cd t
+hg branches
 
 echo foo > a
 hg add a
 hg ci -m "initial" -d "0 0"
-echo foo > .hg/branch
+hg branch foo
+hg branch
 hg ci -m "add branch name" -d "0 0"
-echo bar > .hg/branch
+hg branch bar
 hg ci -m "change branch name" -d "0 0"
-rm .hg/branch
+hg branch ""
 hg ci -m "clear branch name" -d "0 0"
 
 hg co foo
-cat .hg/branch
+hg branch
 echo bleah > a
 hg ci -m "modify a branch" -d "0 0"
 
 hg merge
-cat .hg/branch
+hg branch
 HG_MERGE=true hg ci -m "merge" -d "0 0"
 hg log
 
+hg branches
+hg branches -q
+
 echo % test for invalid branch cache
 hg rollback
 hg tip