mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 04:43:19 +03:00
Add tag/rev/node search to hgweb
This commit is contained in:
parent
9be61ee466
commit
7ac7091e05
@ -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))
|
||||
|
||||
|
@ -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#
|
||||
|
Loading…
Reference in New Issue
Block a user