mercurial/hgweb.py
changeset 222 87484f627422
parent 215 9ff5a78d0c45
child 237 4f802588cdfb
child 237 4f802588cdfb
child 238 3b92f8fe47ae
--- a/mercurial/hgweb.py	Thu Jun 02 18:07:01 2005 -0800
+++ b/mercurial/hgweb.py	Thu Jun 02 18:46:49 2005 -0800
@@ -608,6 +608,11 @@
         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 = []