##// END OF EJS Templates
hgweb: add view-only support...
mpm@selenic.com -
r197:b3886039 default
parent child Browse files
Show More
@@ -113,6 +113,7 b' class hgweb:'
113 self.reponame = name
113 self.reponame = name
114 self.repo = repository(ui(), path)
114 self.repo = repository(ui(), path)
115 self.t = templater(templatemap)
115 self.t = templater(templatemap)
116 self.viewonly = 0
116
117
117 def date(self, cs):
118 def date(self, cs):
118 return time.asctime(time.gmtime(float(cs[2].split(' ')[0])))
119 return time.asctime(time.gmtime(float(cs[2].split(' ')[0])))
@@ -614,6 +615,9 b' class hgweb:'
614 elif args['cmd'][0] == 'changegroup':
615 elif args['cmd'][0] == 'changegroup':
615 httphdr("application/hg-changegroup")
616 httphdr("application/hg-changegroup")
616 nodes = []
617 nodes = []
618 if self.viewonly:
619 return
620
617 if args.has_key('roots'):
621 if args.has_key('roots'):
618 nodes = map(bin, args['roots'][0].split(" "))
622 nodes = map(bin, args['roots'][0].split(" "))
619
623
General Comments 0
You need to be logged in to leave comments. Login now