Source

freehg / repos / views.py

Diff from to

File repos/views.py

     repo = get_object_or_404(Repo, name=reponame, owner__username=username)
     hgrepo = hg.repository(ui.ui(), repo.file_path)
     has_tip = hgrepo.changelog.tip() != '\x00'*20
+    tip_hex = hexlify(hgrepo.changelog.tip())[:12]
     from mercurial.hgweb.hgweb_mod import hgweb
     from mercurial.hgweb.common import style_map
     from mercurial import templater
         dict(
             repo=repo,
             has_tip=has_tip,
+            tip_hex=tip_hex,
             content=u''.join(content),
         ), context_instance=RequestContext(request)
     )