Mercurial > public > mercurial-scm > hg
diff tests/test-revset.t @ 23954:310222feb9a8 stable
revset: allow rev(-1) to indicate null revision (BC)
This can simplify the conversion from numeric revision to string. Without it,
we have to handle -1 specially because repo['-1'] != repo[-1].
The -1 revision is not officially documented, but this change makes sense
assuming that "rev(%d)" exists for scripting or third-party tools.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 10 Jan 2015 12:56:38 +0900 |
parents | aac4a1a7920e |
children | b1e026c25552 |
line wrap: on
line diff