##// END OF EJS Templates
Update on pull -u when heads were closed (fixes issue666)....
Update on pull -u when heads were closed (fixes issue666). Patch written by Benoit Boissinot. This should probably be improved in the future to handle long-living branches, as joining two "other" heads will switch to that new head. But this is not a new problem, as adding to the "other" head would have switched to that new head, too.

File last commit:

r2982:890e285c default
r5080:73fdc8bd default
Show More
test-revert-unknown
20 lines | 274 B | text/plain | TextLexer
/ tests / test-revert-unknown
mpm@selenic.com
Fix bug with co -C across branches, update tests
r1236 #!/bin/sh
hg init
touch unknown
touch a
hg add a
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg ci -m "1" -d "1000000 0"
mpm@selenic.com
Fix bug with co -C across branches, update tests
r1236
touch b
hg add b
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg ci -m "2" -d "1000000 0"
mpm@selenic.com
Fix bug with co -C across branches, update tests
r1236
echo %% Should show unknown
hg status
Vadim Gelfer
revert: require --all to revert all files.
r2982 hg revert -r 0 --all
mpm@selenic.com
Fix bug with co -C across branches, update tests
r1236 echo %% Should show unknown and b removed
hg status
echo %% Should show a and unknown
ls