changeset 222 | 87484f627422 |
parent 215 | 9ff5a78d0c45 |
child 237 | 4f802588cdfb |
child 237 | 4f802588cdfb |
child 238 | 3b92f8fe47ae |
--- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -608,6 +608,11 @@ class hgweb: elif args['cmd'][0] == 'filelog': write(self.filelog(args['file'][0], args['filenode'][0])) + elif args['cmd'][0] == 'heads': + httphdr("text/plain") + h = self.repo.heads() + sys.stdout.write(" ".join(map(hex, h)) + "\n") + elif args['cmd'][0] == 'branches': httphdr("text/plain") nodes = []