##// END OF EJS Templates
hgweb: link to successors of obsoleted changesets...
av6 -
r35502:4c7ae95e default
parent child Browse files
Show More
@@ -353,7 +353,10 b' def formatlinerange(fromline, toline):'
353 return '%d:%d' % (fromline + 1, toline)
353 return '%d:%d' % (fromline + 1, toline)
354
354
355 def succsandmarkers(repo, ctx):
355 def succsandmarkers(repo, ctx):
356 return templatekw.showsuccsandmarkers(repo, ctx)
356 for item in templatekw.showsuccsandmarkers(repo, ctx):
357 item['successors'] = _siblings(repo[successor]
358 for successor in item['successors'])
359 yield item
357
360
358 def commonentry(repo, ctx):
361 def commonentry(repo, ctx):
359 node = ctx.node()
362 node = ctx.node()
@@ -271,7 +271,8 b' branchtag = \'<span class="branchtag" tit'
271 inbranchtag = '<span class="inbranchtag" title="{name|escape}">{name|escape}</span> '
271 inbranchtag = '<span class="inbranchtag" title="{name|escape}">{name|escape}</span> '
272 bookmarktag = '<span class="bookmarktag" title="{name|escape}">{name|escape}</span> '
272 bookmarktag = '<span class="bookmarktag" title="{name|escape}">{name|escape}</span> '
273 alltags = '<span class="logtags">{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>'
273 alltags = '<span class="logtags">{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>'
274 obsfatesuccessors = '{if(successors, ' as ')}{join(successors, ', ')}'
274 successorlink = '<a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
275 obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
275 obsfateverb = '{obsfateverb(successors, markers)}'
276 obsfateverb = '{obsfateverb(successors, markers)}'
276 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
277 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
277 obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}'
278 obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}'
@@ -229,7 +229,8 b' branchtag = \'<span class="branchtag" tit'
229 inbranchtag = '<span class="inbranchtag" title="{name|escape}">{name|escape}</span> '
229 inbranchtag = '<span class="inbranchtag" title="{name|escape}">{name|escape}</span> '
230 bookmarktag = '<span class="bookmarktag" title="{name|escape}">{name|escape}</span> '
230 bookmarktag = '<span class="bookmarktag" title="{name|escape}">{name|escape}</span> '
231 alltags = '<span class="logtags">{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>'
231 alltags = '<span class="logtags">{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>'
232 obsfatesuccessors = '{if(successors, ' as ')}{join(successors, ', ')}'
232 successorlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
233 obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
233 obsfateverb = '{obsfateverb(successors, markers)}'
234 obsfateverb = '{obsfateverb(successors, markers)}'
234 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
235 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
235 obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}'
236 obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}'
@@ -209,7 +209,8 b' changelogbranchhead = \'<span class="bran'
209 changelogbranchname = '<span class="branchname">{name|escape}</span> '
209 changelogbranchname = '<span class="branchname">{name|escape}</span> '
210 alltags = '{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{bookmarks%changelogtag}'
210 alltags = '{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{bookmarks%changelogtag}'
211
211
212 obsfatesuccessors = '{if(successors, ' as ')}{join(successors, ', ')}'
212 successorlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
213 obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
213 obsfateverb = '{obsfateverb(successors, markers)}'
214 obsfateverb = '{obsfateverb(successors, markers)}'
214 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
215 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
215 obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}'
216 obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}'
@@ -166,7 +166,8 b" branchentry = '"
166 diffblock = '<pre class="parity{parity}">{lines}</pre>'
166 diffblock = '<pre class="parity{parity}">{lines}</pre>'
167 changelogtag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>'
167 changelogtag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>'
168 changesettag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>'
168 changesettag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>'
169 obsfatesuccessors = '{if(successors, ' as ')}{join(successors, ', ')}'
169 successorlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
170 obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
170 obsfateverb = '{obsfateverb(successors, markers)}'
171 obsfateverb = '{obsfateverb(successors, markers)}'
171 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
172 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
172 obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}'
173 obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}'
@@ -1036,15 +1036,15 b' check obsolete changeset'
1036
1036
1037 check an obsolete changeset that has been rewritten
1037 check an obsolete changeset that has been rewritten
1038 $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=paper' | grep rewritten
1038 $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=paper' | grep rewritten
1039 <td>rewritten as 6:3de5eca88c00</td>
1039 <td>rewritten as <a href="/rev/3de5eca88c00?style=paper">3de5eca88c00</a> </td>
1040 $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=coal' | grep rewritten
1040 $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=coal' | grep rewritten
1041 <td>rewritten as 6:3de5eca88c00</td>
1041 <td>rewritten as <a href="/rev/3de5eca88c00?style=coal">3de5eca88c00</a> </td>
1042 $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=gitweb' | grep rewritten
1042 $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=gitweb' | grep rewritten
1043 <tr><td>obsolete</td><td>rewritten as 6:3de5eca88c00</td></tr>
1043 <tr><td>obsolete</td><td>rewritten as <a class="list" href="/rev/3de5eca88c00?style=gitweb">3de5eca88c00</a> </td></tr>
1044 $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=monoblue' | grep rewritten
1044 $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=monoblue' | grep rewritten
1045 <dt>obsolete</dt><dd>rewritten as 6:3de5eca88c00</dd>
1045 <dt>obsolete</dt><dd>rewritten as <a href="/rev/3de5eca88c00?style=monoblue">3de5eca88c00</a> </dd>
1046 $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=spartan' | grep rewritten
1046 $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=spartan' | grep rewritten
1047 <td class="obsolete">rewritten as 6:3de5eca88c00</td>
1047 <td class="obsolete">rewritten as <a href="/rev/3de5eca88c00?style=spartan">3de5eca88c00</a> </td>
1048
1048
1049 check changeset with instabilities
1049 check changeset with instabilities
1050
1050
General Comments 0
You need to be logged in to leave comments. Login now