(redirected from Tools.Hg)

Note that most of those are actually to consider for code repository overall, thus could be interesting for Git too.
from mercurial import hg, ui
repo = hg.repository(ui.ui(), '.')
for r in repo:
ctx = repo[r]
l = 0
for f in ctx:
l += ctx[f].data().count('\n')
# ctx.data() returns the text of the file
print r, l
code timeline of code-repo generated with code-repo.plt to stay coherent with
wiki timeline
hgweb.cgi at http://www.innovativ.it/hgweb.cgi and with hgwebdir.cgi at http://www.innovativ.it/hgwebdir.cgi
hg serve and lighttpd proxy.server from port 8000 to http://hg.innovativ.it
abort: outstanding uncommitted changes FAQ/CommonProblems, Mercurial official wiki
abort: push creates new remote heads! Using Mercurial MDC
My notes on Tools gather what I know or want to know. Consequently they are not and will never be complete references. For this, official manuals and online communities provide much better answers.