Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 153:e8a360cd5a9f
changed pos to rev for changelog cmd, changed & to ;
author | jake@edge2.net |
---|---|
date | Tue, 24 May 2005 07:42:05 -0700 |
parents | 529bf610092e |
children | 083c38bdfa64 |
comparison
equal
deleted
inserted
replaced
152:67b8d24d2dbe | 153:e8a360cd5a9f |
---|---|
514 def run(self): | 514 def run(self): |
515 args = cgi.parse() | 515 args = cgi.parse() |
516 | 516 |
517 if not args.has_key('cmd') or args['cmd'][0] == 'changelog': | 517 if not args.has_key('cmd') or args['cmd'][0] == 'changelog': |
518 hi = self.repo.changelog.count() | 518 hi = self.repo.changelog.count() |
519 if args.has_key('pos'): | 519 if args.has_key('rev'): |
520 hi = int(args['pos'][0]) | 520 hi = int(args['rev'][0]) |
521 | 521 |
522 write(self.changelog(hi)) | 522 write(self.changelog(hi)) |
523 | 523 |
524 elif args['cmd'][0] == 'changeset': | 524 elif args['cmd'][0] == 'changeset': |
525 write(self.changeset(args['node'][0])) | 525 write(self.changeset(args['node'][0])) |