##// 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:

r2982:890e285c default
r3465:2d35a8d2 default
Show More
test-merge-revert
45 lines | 633 B | text/plain | TextLexer
/ tests / test-merge-revert
Thomas Arendsen Hein
Don't use 'set -x', fix exports, sed and hexdump usage for Solaris.
r800 #!/bin/sh
Thomas Arendsen Hein
Added tests for bug with three-way-merging of old tip, tip and cwd.
r792
mkdir t
cd t
hg init
echo "added file1" > file1
echo "added file2" > file2
hg add file1 file2
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "added file1 and file2" -d "1000000 0" -u user
Thomas Arendsen Hein
Added tests for bug with three-way-merging of old tip, tip and cwd.
r792 echo "changed file1" >> file1
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "changed file1" -d "1000000 0" -u user
Thomas Arendsen Hein
Added tests for bug with three-way-merging of old tip, tip and cwd.
r792 hg -q log
hg id
hg update -C 0
hg id
echo "changed file1" >> file1
hg id
Vadim Gelfer
revert: require --all to revert all files.
r2982 hg revert --all
Thomas Arendsen Hein
Added tests for bug with three-way-merging of old tip, tip and cwd.
r792 hg diff
hg status
hg id
hg update
hg diff
hg status
hg id
hg update -C 0
echo "changed file1" >> file1
HGMERGE=merge hg update
hg diff
hg status
hg id
Vadim Gelfer
revert: require --all to revert all files.
r2982 hg revert --all
Thomas Arendsen Hein
Added tests for bug with three-way-merging of old tip, tip and cwd.
r792 hg diff
hg status
hg id
Vadim Gelfer
revert: require --all to revert all files.
r2982 hg revert -r tip --all
Thomas Arendsen Hein
Added tests for bug with three-way-merging of old tip, tip and cwd.
r792 hg diff
hg status
hg id
hg update -C
hg diff
hg status
hg id
cd ..; /bin/rm -rf t