revpair: update test to make a difference if odd range not handled specially
authorYuya Nishihara <yuya@tcha.org>
Thu, 13 Aug 2015 16:27:32 +0900
changeset 26019 85f5352c7ca7
parent 26018 c6115c30a376
child 26020 cc3a30ff9490
revpair: update test to make a difference if odd range not handled specially It was added at 2a0efa1112ac, but there was no difference between -r2 and -r2:2 because the working directory was clean.
tests/test-diff-change.t
--- a/tests/test-diff-change.t	Thu Aug 13 18:59:49 2015 +0900
+++ b/tests/test-diff-change.t	Thu Aug 13 16:27:32 2015 +0900
@@ -29,15 +29,25 @@
   -first
   +second
 
+  $ cd ..
+
 Test dumb revspecs (issue3474)
 
+  $ hg clone -q a dumbspec
+  $ cd dumbspec
+  $ echo "wdir" > file.txt
+
   $ hg diff -r 2:2
   $ hg diff -r "2 and 1"
   abort: empty revision range
   [255]
 
+  $ cd ..
+
 Testing diff --change when merge:
 
+  $ cd a
+
   $ for i in 1 2 3 4 5 6 7 8 9 10; do
   >    echo $i >> file.txt
   > done