mercurial/hgweb.py
changeset 153 e8a360cd5a9f
parent 142 529bf610092e
child 155 083c38bdfa64
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]))