Add tag/rev/node search to hgweb

This commit is contained in:
mpm@selenic.com 2005-05-26 10:08:47 -08:00
parent 9be61ee466
commit 7ac7091e05
2 changed files with 14 additions and 3 deletions

View File

@ -524,7 +524,8 @@ class hgweb:
if not args.has_key('cmd') or args['cmd'][0] == 'changelog':
hi = self.repo.changelog.count()
if args.has_key('rev'):
hi = int(args['rev'][0])
hi = args['rev'][0]
hi = self.repo.changelog.rev(self.repo.lookup(hi))
write(self.changelog(hi))

View File

@ -4,10 +4,20 @@
<body>
<h2>changelog for #repo#</h2>
navigate: #changenav#<br>
<form>
search:
<input type="hidden" name="cmd" value="changelog">
<input name="rev" type="text" width="30">
navigate: #changenav#<br/>
</form>
#entries#
navigate: #changenav#<br>
<form>
search:
<input type="hidden" name="cmd" value="changelog">
<input name="rev" type="text" width="30">
navigate: #changenav#<br/>
</form>
#footer#