Show More
@@ -5438,6 +5438,7 b' def tags(ui, repo, **opts):' | |||||
5438 | opts = pycompat.byteskwargs(opts) |
|
5438 | opts = pycompat.byteskwargs(opts) | |
5439 | ui.pager('tags') |
|
5439 | ui.pager('tags') | |
5440 | fm = ui.formatter('tags', opts) |
|
5440 | fm = ui.formatter('tags', opts) | |
|
5441 | contexthint = fm.contexthint('tag rev node type') | |||
5441 | hexfunc = fm.hexfunc |
|
5442 | hexfunc = fm.hexfunc | |
5442 | tagtype = "" |
|
5443 | tagtype = "" | |
5443 |
|
5444 | |||
@@ -5450,6 +5451,8 b' def tags(ui, repo, **opts):' | |||||
5450 | tagtype = 'local' |
|
5451 | tagtype = 'local' | |
5451 |
|
5452 | |||
5452 | fm.startitem() |
|
5453 | fm.startitem() | |
|
5454 | if 'ctx' in contexthint: | |||
|
5455 | fm.context(ctx=repo[n]) | |||
5453 | fm.write('tag', '%s', t, label=label) |
|
5456 | fm.write('tag', '%s', t, label=label) | |
5454 | fmt = " " * (30 - encoding.colwidth(t)) + ' %5d:%s' |
|
5457 | fmt = " " * (30 - encoding.colwidth(t)) + ' %5d:%s' | |
5455 | fm.condwrite(not ui.quiet, 'rev node', fmt, |
|
5458 | fm.condwrite(not ui.quiet, 'rev node', fmt, |
@@ -610,6 +610,27 b' to remove a tag of type X which actually' | |||||
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 |
General Comments 0
You need to be logged in to leave comments.
Login now