##// END OF EJS Templates
subrepo: change default path in hgrc of subrepo after cloning...
subrepo: change default path in hgrc of subrepo after cloning Previous behavior was to put in the cloned subrepos the path found in the original main repo. However it isn't valid for relative path and it seems more logical to reference instead the subrepos working copy path of the original main repo.

File last commit:

r8954:e67e5b60 default
r10378:e1401c74 default
Show More
test-newbranch
113 lines | 1.9 KiB | text/plain | TextLexer
Matt Mackall
Add some basic branch name tests
r3420 #!/bin/sh
John Mulligan
store all heads of a branch in the branch cache...
r7654 branchcache=.hg/branchheads.cache
Alexis S. L. Carvalho
tests: hide the name of the branch cache file
r6160
Matt Mackall
Add some basic branch name tests
r3420 hg init t
cd t
Matt Mackall
add branch and branches commands
r3502 hg branches
Matt Mackall
Add some basic branch name tests
r3420
echo foo > a
hg add a
Alexis S. L. Carvalho
small fixes for test-newbranch...
r3760 hg ci -m "initial" -d "1000000 0"
Matt Mackall
add branch and branches commands
r3502 hg branch foo
hg branch
Alexis S. L. Carvalho
small fixes for test-newbranch...
r3760 hg ci -m "add branch name" -d "1000000 0"
Matt Mackall
add branch and branches commands
r3502 hg branch bar
Alexis S. L. Carvalho
small fixes for test-newbranch...
r3760 hg ci -m "change branch name" -d "1000000 0"
Brendan Cully
Add test for branch shadowing
r4203 echo % branch shadowing
Matt Mackall
Move branch read/write to dirstate where it belongs
r4179 hg branch default
Matt Mackall
Merge with -stable, fix small test failure
r4209 hg branch -f default
Alexis S. L. Carvalho
small fixes for test-newbranch...
r3760 hg ci -m "clear branch name" -d "1000000 0"
Matt Mackall
Add some basic branch name tests
r3420
Brendan Cully
Branch heads should not include "heads" that are ancestors of other heads....
r8954 echo % there should be only one default branch head
hg heads .
Matt Mackall
Add some basic branch name tests
r3420 hg co foo
Matt Mackall
add branch and branches commands
r3502 hg branch
Matt Mackall
Add some basic branch name tests
r3420 echo bleah > a
Alexis S. L. Carvalho
small fixes for test-newbranch...
r3760 hg ci -m "modify a branch" -d "1000000 0"
Matt Mackall
Add some basic branch name tests
r3420
Dirkjan Ochtman
merge: only in-branch merges can be implicit
r6723 hg merge default
Matt Mackall
add branch and branches commands
r3502 hg branch
Alexis S. L. Carvalho
small fixes for test-newbranch...
r3760 hg ci -m "merge" -d "1000000 0"
Matt Mackall
Add some basic branch name tests
r3420 hg log
Matt Mackall
add branch and branches commands
r3502 hg branches
hg branches -q
Thomas Arendsen Hein
Add test for invalid branch cache (fixed by 27ebe4efe98e)
r3451 echo % test for invalid branch cache
hg rollback
Alexis S. L. Carvalho
tests: hide the name of the branch cache file
r6160 cp $branchcache .hg/bc-invalid
Alexis S. L. Carvalho
small fixes for test-newbranch...
r3760 hg log -r foo
Alexis S. L. Carvalho
tests: hide the name of the branch cache file
r6160 cp .hg/bc-invalid $branchcache
Alexis S. L. Carvalho
Ignore all errors while parsing the branch cache.
r3761 hg --debug log -r foo
Alexis S. L. Carvalho
tests: hide the name of the branch cache file
r6160 rm $branchcache
echo corrupted > $branchcache
Alexis S. L. Carvalho
Ignore all errors while parsing the branch cache.
r3761 hg log -qr foo
Alexis S. L. Carvalho
tests: hide the name of the branch cache file
r6160 cat $branchcache
Brendan Cully
Test update to branch tip
r4175
Alexis S. L. Carvalho
update the branch cache at the end of addchangegroup...
r5988 echo % push should update the branch cache
hg init ../target
echo % pushing just rev 0
hg push -qr 0 ../target
Alexis S. L. Carvalho
tests: hide the name of the branch cache file
r6160 cat ../target/$branchcache
Alexis S. L. Carvalho
update the branch cache at the end of addchangegroup...
r5988 echo % pushing everything
hg push -qf ../target
Alexis S. L. Carvalho
tests: hide the name of the branch cache file
r6160 cat ../target/$branchcache
Alexis S. L. Carvalho
update the branch cache at the end of addchangegroup...
r5988
Brendan Cully
Test update to branch tip
r4175 echo % update with no arguments: tipmost revision of the current branch
hg up -q -C 0
hg up -q
hg id
hg up -q 1
hg up -q
hg id
Alexis S. L. Carvalho
avoid a traceback with hg branch newbranch; hg up
r4231 hg branch foobar
hg up
Brendan Cully
Add fast-forward branch merging
r4410 echo % fastforward merge
hg branch ff
echo ff > ff
hg ci -Am'fast forward' -d '1000000 0'
hg up foo
hg merge ff
hg branch
hg commit -m'Merge ff into foo' -d '1000000 0'
hg parents
hg manifest
Dirkjan Ochtman
merge: only in-branch merges can be implicit
r6723 echo % test merging, add 3 default heads and one test head
cd ..
hg init merges
cd merges
echo a > a
hg ci -Ama
echo b > b
hg ci -Amb
hg up 0
echo c > c
hg ci -Amc
hg up 0
echo d > d
hg ci -Amd
hg up 0
hg branch test
echo e >> e
hg ci -Ame
hg log
echo % implicit merge with test branch as parent
hg merge
hg up -C default
echo % implicit merge with default branch as parent
hg merge
echo % 3 branch heads, explicit merge required
hg merge 2
hg ci -m merge
echo % 2 branch heads, implicit merge works
hg merge