hg2git.py: Refactor main code into hg2git() function
commit85f0d9c88103d6ffa27549dd46e3341438e6257a
authorRocco Rutte <pdmef@gmx.net>
Thu, 8 Mar 2007 11:21:21 +0000 (8 11:21 +0000)
committerRocco Rutte <pdmef@gmx.net>
Thu, 8 Mar 2007 11:21:21 +0000 (8 11:21 +0000)
treed267f9a5aed99e17bf423bc4c090c205cb59c6c0
parent61bb1cb70794df21b626159ff164839d7915907e
hg2git.py: Refactor main code into hg2git() function

Now this can even be used as a module from other python scripts by
simply calling the hg2git() function.

Except some config values nobody really ever wants to change, it's even
save to run several hg2git() functions in parallel as no global vars or
the like are used by intention (but it makes the code uglier).

Signed-off-by: Rocco Rutte <pdmef@gmx.net>
hg2git.py