equal
deleted
inserted
replaced
18 from . import ( |
18 from . import ( |
19 encoding, |
19 encoding, |
20 error, |
20 error, |
21 lock as lockmod, |
21 lock as lockmod, |
22 obsolete, |
22 obsolete, |
|
23 pycompat, |
23 scmutil, |
24 scmutil, |
24 txnutil, |
25 txnutil, |
25 util, |
26 util, |
26 ) |
27 ) |
27 |
28 |
769 """private method to print bookmarks |
770 """private method to print bookmarks |
770 |
771 |
771 Provides a way for extensions to control how bookmarks are printed (e.g. |
772 Provides a way for extensions to control how bookmarks are printed (e.g. |
772 prepend or postpend names) |
773 prepend or postpend names) |
773 """ |
774 """ |
|
775 opts = pycompat.byteskwargs(opts) |
774 fm = ui.formatter('bookmarks', opts) |
776 fm = ui.formatter('bookmarks', opts) |
775 hexfn = fm.hexfunc |
777 hexfn = fm.hexfunc |
776 if len(bmarks) == 0 and fm.isplain(): |
778 if len(bmarks) == 0 and fm.isplain(): |
777 ui.status(_("no bookmarks set\n")) |
779 ui.status(_("no bookmarks set\n")) |
778 for bmark, (n, prefix, label) in sorted(bmarks.iteritems()): |
780 for bmark, (n, prefix, label) in sorted(bmarks.iteritems()): |