Mercurial > hg
view tests/test-newbranch @ 4083:33c369afec94
Unified *_rcpath so the interface is similar across operating systems
Changed os_rcpath to combine system_rcpath and user_rcpath. Changed
system_rcpath and user_rcpath to both return a list of paths to add to the
combined rcpath for both Windows NT and other platforms.
author | Shane Holloway <shane.holloway@ieee.org> |
---|---|
date | Wed, 14 Feb 2007 15:20:06 -0700 |
parents | 9433bdcaa9ae |
children | 0182cb2e4aac |
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 "1000000 0" hg branch foo hg branch hg ci -m "add branch name" -d "1000000 0" hg branch bar hg ci -m "change branch name" -d "1000000 0" hg branch "" hg ci -m "clear branch name" -d "1000000 0" hg co foo hg branch echo bleah > a hg ci -m "modify a branch" -d "1000000 0" hg merge hg branch hg ci -m "merge" -d "1000000 0" hg log hg branches hg branches -q echo % test for invalid branch cache hg rollback cp .hg/branches.cache .hg/bc-invalid hg log -r foo cp .hg/bc-invalid .hg/branches.cache hg --debug log -r foo rm .hg/branches.cache echo corrupted > .hg/branches.cache hg log -qr foo cat .hg/branches.cache