comparison tests/test-tags.t @ 38430:5d9b765dbe15

tags: unblock log-like template keywords and functions It checks if ctx will be used in template since loading ctx per revision could take extra 10-100msec in total depending on the number of tags.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 08 Jun 2018 22:16:23 +0900
parents 326b174c6a47
children 47e3f554df35
comparison
equal deleted inserted replaced
38429:8399438bc7ef 38430:5d9b765dbe15
608 $ hg tags -v 608 $ hg tags -v
609 tip 1:a0b6fe111088 609 tip 1:a0b6fe111088
610 localtag 0:bbd179dfa0a7 local 610 localtag 0:bbd179dfa0a7 local
611 globaltag 0:bbd179dfa0a7 611 globaltag 0:bbd179dfa0a7
612 612
613 Templated output:
614
615 (immediate values)
616
617 $ hg tags -T '{pad(tag, 9)} {rev}:{node} ({type})\n'
618 tip 1:a0b6fe111088c8c29567d3876cc466aa02927cae ()
619 localtag 0:bbd179dfa0a71671c253b3ae0aa1513b60d199fa (local)
620 globaltag 0:bbd179dfa0a71671c253b3ae0aa1513b60d199fa ()
621
622 (ctx/revcache dependent)
623
624 $ hg tags -T '{pad(tag, 9)} {rev} {file_adds}\n'
625 tip 1 .hgtags
626 localtag 0 foo
627 globaltag 0 foo
628
629 $ hg tags -T '{pad(tag, 9)} {rev}:{node|shortest}\n'
630 tip 1:a0b6
631 localtag 0:bbd1
632 globaltag 0:bbd1
633
613 Test for issue3911 634 Test for issue3911
614 635
615 $ hg tag -r 0 -l localtag2 636 $ hg tag -r 0 -l localtag2
616 $ hg tag -l --remove localtag2 637 $ hg tag -l --remove localtag2
617 $ hg tags -v 638 $ hg tags -v