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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -