# HG changeset patch # User Pierre-Yves David # Date 1403712965 -3600 # Node ID f0147ff1109f52fab36a464f631aef5c20129ba8 # Parent db23fb4e210d942c3da82507c595a4b2b6b4522c test-revert: add methodical revert to "base" We now also test reverting s file to the content of another revision. This is still done using the `--all` flag. diff -r db23fb4e210d -r f0147ff1109f tests/test-revert.t --- a/tests/test-revert.t Wed Jun 25 17:03:55 2014 +0100 +++ b/tests/test-revert.t Wed Jun 25 17:16:05 2014 +0100 @@ -572,3 +572,26 @@ $ cd .. $ diff -U 0 -- content-parent.txt content-parent-all.txt | grep _ [1] + +Test revert --all to "base" content +----------------------------------- + +(setup from reference repo) + + $ cp -r revert-ref revert-base-all + $ cd revert-base-all + +check revert output + + $ hg revert --all --rev 'desc(base)' + reverting modified_clean + +Compare resulting directory with revert target. + +The diff is filtered to include change only. The only difference should be +additional `.orig` backup file when applicable. + + $ python ../dircontent.py > ../content-base-all.txt + $ cd .. + $ diff -U 0 -- content-base.txt content-base-all.txt | grep _ + [1]