view tests/test-newbranch @ 3572:fe03c9a476f6

log speedup: use only ui.write in changeset_printer.show - ui.status is not very useful, since this code is never executed when ui.quiet is true. - explicitly checking for ui.debug allows a regular hg log to run without looking at the manifest index - the calls to ui.note were converted for consistency
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sat, 28 Oct 2006 20:21:54 -0300
parents 8dc14d630b29
children aeafd80c1e78
line wrap: on
line source

#!/bin/sh

hg init t
cd t
hg branches

echo foo > a
hg add a
hg ci -m "initial" -d "0 0"
hg branch foo
hg branch
hg ci -m "add branch name" -d "0 0"
hg branch bar
hg ci -m "change branch name" -d "0 0"
hg branch ""
hg ci -m "clear branch name" -d "0 0"

hg co foo
hg branch
echo bleah > a
hg ci -m "modify a branch" -d "0 0"

hg merge
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