Mercurial > public > mercurial-scm > hg
diff tests/test-command-template.t @ 32684:af854b1b36f8
revlog: add support for partial matching of wdir node id
The idea is simple. If the given node id prefix is 'ff...f', add +1 to the
number of matches (e.g. ambiguous if partial + maybewdir > 1).
This patch also fixes id() revset and shortest() template since _partialmatch()
can raise WdirUnsupported exception.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 19 Aug 2016 18:26:04 +0900 |
parents | 2ab7578e685b |
children | dddba6f3e59c |
line wrap: on
line diff
--- a/tests/test-command-template.t Sat Aug 20 18:15:19 2016 +0900 +++ b/tests/test-command-template.t Fri Aug 19 18:26:04 2016 +0900 @@ -3503,6 +3503,9 @@ hg: parse error: shortest() expects an integer minlength [255] + $ hg log -r 'wdir()' -T '{node|shortest}\n' + ffff + $ cd .. Test shortest(node) with the repo having short hash collision: