Mercurial > public > mercurial-scm > hg-stable
diff tests/test-diff-change.t @ 29782:98976e3cae57
revpair: do not optimize tree to check for odd-range spec
At cc3a30ff9490, we had to optimize a parsed tree to resolve x^:y ambiguity.
Since we've moved the resolution of x^:y to parse(), we no longer have to call
optimize(). Therefore, (x:y) can be taken as a single expression, not an odd
range expression x:y.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 06 Aug 2016 20:46:53 +0900 |
parents | cc3a30ff9490 |
children | 64292addbe67 |
line wrap: on
line diff
--- a/tests/test-diff-change.t Sat Aug 06 20:37:48 2016 +0900 +++ b/tests/test-diff-change.t Sat Aug 06 20:46:53 2016 +0900 @@ -50,6 +50,13 @@ @@ -1,1 +1,1 @@ -third +wdir + $ hg diff -r '(2:2)' --nodates + diff -r bf5ff72eb7e0 file.txt + --- a/file.txt + +++ b/file.txt + @@ -1,1 +1,1 @@ + -third + +wdir $ hg diff -r 2::2 --nodates diff -r bf5ff72eb7e0 file.txt --- a/file.txt