Mercurial > hg
comparison mercurial/hgweb.py @ 165:7fc8385df514
Add tag/rev/node search to hgweb
author | mpm@selenic.com |
---|---|
date | Thu, 26 May 2005 10:08:47 -0800 |
parents | be7103467d2e |
children | 39624c47060f |
comparison
equal
deleted
inserted
replaced
164:2e87f04880ab | 165:7fc8385df514 |
---|---|
522 args = cgi.parse() | 522 args = cgi.parse() |
523 | 523 |
524 if not args.has_key('cmd') or args['cmd'][0] == 'changelog': | 524 if not args.has_key('cmd') or args['cmd'][0] == 'changelog': |
525 hi = self.repo.changelog.count() | 525 hi = self.repo.changelog.count() |
526 if args.has_key('rev'): | 526 if args.has_key('rev'): |
527 hi = int(args['rev'][0]) | 527 hi = args['rev'][0] |
528 hi = self.repo.changelog.rev(self.repo.lookup(hi)) | |
528 | 529 |
529 write(self.changelog(hi)) | 530 write(self.changelog(hi)) |
530 | 531 |
531 elif args['cmd'][0] == 'changeset': | 532 elif args['cmd'][0] == 'changeset': |
532 write(self.changeset(args['node'][0])) | 533 write(self.changeset(args['node'][0])) |