Mercurial > hg-stable
comparison tests/test-identify.t @ 33103:73dfc72704b6
identify: provide changectx to templater
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 26 Jun 2017 09:37:16 +0900 |
parents | 9e0d222f5687 |
children | 46859b437697 |
comparison
equal
deleted
inserted
replaced
33102:04b3743c1d7c | 33103:73dfc72704b6 |
---|---|
53 "node": "ffffffffffffffffffffffffffffffffffffffff", | 53 "node": "ffffffffffffffffffffffffffffffffffffffff", |
54 "parents": [{"node": "cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b", "rev": 0}], | 54 "parents": [{"node": "cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b", "rev": 0}], |
55 "tags": ["tip"] | 55 "tags": ["tip"] |
56 } | 56 } |
57 ] | 57 ] |
58 | |
59 test template keywords and functions which require changectx: | |
60 | |
61 $ hg id -T '{rev} {node|shortest}\n' | |
62 2147483647 ffff | |
63 $ hg id -T '{parents % "{rev} {node|shortest} {desc}\n"}' | |
64 0 cb9a a | |
58 | 65 |
59 with modifications | 66 with modifications |
60 | 67 |
61 $ echo b > a | 68 $ echo b > a |
62 $ hg id -n -t -b -i | 69 $ hg id -n -t -b -i |