Show More
@@ -923,11 +923,14 b' def _printbookmarks(ui, repo, bmarks, **' | |||
|
923 | 923 | """ |
|
924 | 924 | opts = pycompat.byteskwargs(opts) |
|
925 | 925 | fm = ui.formatter('bookmarks', opts) |
|
926 | contexthint = fm.contexthint('bookmark rev node active') | |
|
926 | 927 | hexfn = fm.hexfunc |
|
927 | 928 | if len(bmarks) == 0 and fm.isplain(): |
|
928 | 929 | ui.status(_("no bookmarks set\n")) |
|
929 | 930 | for bmark, (n, prefix, label) in sorted(bmarks.iteritems()): |
|
930 | 931 | fm.startitem() |
|
932 | if 'ctx' in contexthint: | |
|
933 | fm.context(ctx=repo[n]) | |
|
931 | 934 | if not ui.quiet: |
|
932 | 935 | fm.plain(' %s ' % prefix, label=label) |
|
933 | 936 | fm.write('bookmark', '%s', bmark, label=label) |
@@ -77,6 +77,11 b' list bookmarks' | |||
|
77 | 77 | $ hg commit -m 1 --config "$TESTHOOK" |
|
78 | 78 | test-hook-bookmark: X2: f7b1eb17ad24730a1651fccd46c43826d1bbc2ac -> 925d80f479bb026b0fb3deb27503780b13f74123 |
|
79 | 79 | |
|
80 | $ hg bookmarks -T '{rev}:{node|shortest} {bookmark} {desc|firstline}\n' | |
|
81 | 0:f7b1 X 0 | |
|
82 | 1:925d X2 1 | |
|
83 | -1:0000 Y | |
|
84 | ||
|
80 | 85 | $ hg bookmarks -Tjson |
|
81 | 86 | [ |
|
82 | 87 | { |
General Comments 0
You need to be logged in to leave comments.
Login now