Display mercurial version with CGI -
i'm using mercurial on shared hosting hgwebdir cgi script.
sometimes i'd check version of mercurial there installed on server. there way display mercurial version using cgi (like output of hg --version
)?
https://www.mercurial-scm.org/wiki/referencecycles
from mercurial import hg, ui, util import os import gc def test(): print "mercurial version: %s" % util.version() repo = hg.repository(ui.ui(), os.getcwd()) status = repo.status() print status test() print "gc.collect() returns %s" % gc.collect()
Comments
Post a Comment