comparison mercurial/hgweb.py @ 937:e4f1b76831b2

Whitespace
author mpm@selenic.com
date Wed, 17 Aug 2005 16:37:04 -0800
parents 01215ad04283
children 54b2a42e501e
comparison
equal deleted inserted replaced
936:b62d1e738fa9 937:e4f1b76831b2
622 "footer":footer, 622 "footer":footer,
623 }) 623 })
624 624
625 if not args.has_key('cmd'): 625 if not args.has_key('cmd'):
626 args['cmd'] = [self.t.cache['default'],] 626 args['cmd'] = [self.t.cache['default'],]
627 627
628 if args['cmd'][0] == 'changelog': 628 if args['cmd'][0] == 'changelog':
629 c = self.repo.changelog.count() - 1 629 c = self.repo.changelog.count() - 1
630 hi = c 630 hi = c
631 if args.has_key('rev'): 631 if args.has_key('rev'):
632 hi = args['rev'][0] 632 hi = args['rev'][0]
718 class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler): 718 class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler):
719 def log_error(self, format, *args): 719 def log_error(self, format, *args):
720 errorlog.write("%s - - [%s] %s\n" % (self.address_string(), 720 errorlog.write("%s - - [%s] %s\n" % (self.address_string(),
721 self.log_date_time_string(), 721 self.log_date_time_string(),
722 format % args)) 722 format % args))
723 723
724 def log_message(self, format, *args): 724 def log_message(self, format, *args):
725 accesslog.write("%s - - [%s] %s\n" % (self.address_string(), 725 accesslog.write("%s - - [%s] %s\n" % (self.address_string(),
726 self.log_date_time_string(), 726 self.log_date_time_string(),
727 format % args)) 727 format % args))
728 728