[qt] bookmark: add a bookmark entry in changeset content (closes #92750)

authorAlain Leufroy <alain.leufroy@logilab.fr>
changesetd658b7947d08
branchdefault
phasepublic
hiddenno
parent revision#a0f87f3b582f [config] per-interface configuration
child revision#b3fe9075ff7c [TUI] goto: allow to pass any changeid, not only the rev (closes #92736)
files modified by this revision
hgviewlib/qt4/hgrepoview.py
# HG changeset patch
# User Alain Leufroy <alain.leufroy@logilab.fr>
# Date 1336057077 -7200
# Thu May 03 16:57:57 2012 +0200
# Node ID d658b7947d08e4f99363a8758c50240f0f9eac53
# Parent a0f87f3b582fb28c8f42eafa604531f7080c4d18
[qt] bookmark: add a bookmark entry in changeset content (closes #92750)

diff --git a/hgviewlib/qt4/hgrepoview.py b/hgviewlib/qt4/hgrepoview.py
@@ -549,10 +549,16 @@
1                  buf += '<tr><td class="label"><b>Child:</b></td>'\
2                         '<td colspan=5><span class="rev_number">%s</span>:'\
3                         '<a title="go to" href="%s" class="rev_hash">%s</a>&nbsp;'\
4                         '<span class="short_desc"><i>%s</i></span></td></tr>'\
5                         '\n' % (p.rev(), p.rev(), short, desc)
6 +        bookmarks = ', '.join(ctx.bookmarks())
7 +        if bookmarks:
8 +            buf += '<tr><td width=50 class="label"><b>Bookmarks:</b></td>'\
9 +                   '<td colspan=5>&nbsp;'\
10 +                   '<span class="short_desc">%s</span></td></tr>'\
11 +                   '\n' % bookmarks
12 
13          buf += "</table>\n"
14          desc = tounicode(ctx.description())
15          if self.rst_action is not None  and self.rst_action.isChecked():
16              replace = cfg.getFancyReplace()