diff mercurial/templates/paper/map @ 36195:513d268eddfe

hgweb: show users recorded in obsolescence markers It's useful to see who obsoleted a commit, because it's not always done by its author (hg-committed is a good example, because people rebase stacks of commits made by various people). Usernames are obfuscated, but look correct (e.g. "test" is "test").
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 14 Feb 2018 20:32:32 +0800
parents 4c7ae95e1c71
children 7ec5925c971e
line wrap: on
line diff
--- a/mercurial/templates/paper/map	Wed Feb 14 14:12:05 2018 +0100
+++ b/mercurial/templates/paper/map	Wed Feb 14 20:32:32 2018 +0800
@@ -213,7 +213,8 @@
 obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
 obsfateverb = '{obsfateverb(successors, markers)}'
 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
-obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}'
+obsfateusers = '{if(obsfateusers(markers), ' by {join(obsfateusers(markers)%'{user|obfuscate}', ', ')}')}'
+obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}'
 
 filediffparent = '
   <tr>