##// END OF EJS Templates
patch: return list of modified files even when an exception is raised...
patch: return list of modified files even when an exception is raised The file list is passed in as an argument and updated in place. This fixes issue399.

File last commit:

r3451:196baf20 default
r3465:2d35a8d2 default
Show More
test-newbranch
28 lines | 454 B | text/plain | TextLexer
#!/bin/sh
hg init t
cd t
echo foo > a
hg add a
hg ci -m "initial" -d "0 0"
echo foo > .hg/branch
hg ci -m "add branch name" -d "0 0"
echo bar > .hg/branch
hg ci -m "change branch name" -d "0 0"
rm .hg/branch
hg ci -m "clear branch name" -d "0 0"
hg co foo
cat .hg/branch
echo bleah > a
hg ci -m "modify a branch" -d "0 0"
hg merge
cat .hg/branch
HG_MERGE=true hg ci -m "merge" -d "0 0"
hg log
echo % test for invalid branch cache
hg rollback
hg tip