# HG changeset patch # User Anton Shestakov # Date 1431691361 -28800 # Node ID 339e3cc073ace610445ca4a054325943890f437b # Parent 3d82c517b9c50f32be717e7ef956a970c1df3605 paper: show branch/tags/bookmarks when diffing (issue3559) diff -r 3d82c517b9c5 -r 339e3cc073ac mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Fri May 15 20:00:47 2015 +0800 +++ b/mercurial/hgweb/webcommands.py Fri May 15 20:02:41 2015 +0800 @@ -811,6 +811,8 @@ branch=webutil.nodebranchnodefault(ctx), parent=webutil.parents(ctx), child=webutil.children(ctx), + tags=webutil.nodetagsdict(web.repo, n), + bookmarks=webutil.nodebookmarksdict(web.repo, n), diff=diffs) diff = webcommand('diff')(filediff) diff -r 3d82c517b9c5 -r 339e3cc073ac mercurial/templates/paper/filediff.tmpl --- a/mercurial/templates/paper/filediff.tmpl Fri May 15 20:00:47 2015 +0800 +++ b/mercurial/templates/paper/filediff.tmpl Fri May 15 20:02:41 2015 +0800 @@ -36,7 +36,7 @@
-

diff {file|escape} @ {rev}:{node|short}

+

diff {file|escape} @ {rev}:{node|short} {branch%changelogbranchname}{tags%changelogtag}{bookmarks%changelogtag}