hg-fast-export.py: Kill stale usage() and __doc__

Both are obsolete since using the option parser.

Signed-off-by: Rocco Rutte <pdmef@gmx.net>
This commit is contained in:
Rocco Rutte
2007-03-14 10:32:33 +00:00
parent c84790da82
commit 30ce6693ed

8
hg-fast-export.py Normal file → Executable file
View File

@@ -3,10 +3,6 @@
# Copyright (c) 2007 Rocco Rutte <pdmef@gmx.net>
# License: MIT <http://www.opensource.org/licenses/mit-license.php>
"""hg-fast-export.py - A mercurial-to-git filter for git-fast-import(1)
Usage: hg-fast-export.py <hg repo url> <marks file> <heads file> <tip file>
"""
from mercurial import repo,hg,cmdutil,util,ui,revlog,node
from tempfile import mkstemp
from optparse import OptionParser
@@ -27,10 +23,6 @@ cfg_checkpoint_count=0
# write some progress message every this many file contents written
cfg_export_boundary=1000
def usage(ret):
sys.stderr.write(__doc__)
return ret
def setup_repo(url):
myui=ui.ui()
return myui,hg.repository(myui,url)