Changeset bedd10202c24…
Parent 7d0cf16d91e6…
by
Changes to one file · Browse files at bedd10202c24 Showing diff from parent 7d0cf16d91e6 Diff from another changeset...
@@ -24,7 +24,7 @@ class ParseError(Exception):
"""Exception raised on errors in parsing the command line."""
-nonrepo_commands = 'userconfig clone about help'
+nonrepo_commands = 'userconfig clone init about help'
def dispatch(args):
"run the command specified in args"
@@ -209,6 +209,13 @@ from hggtk.datamine import run
run(**opts)
+def hginit(ui, dest=None, **opts):
+ """repository initialization tool"""
+ from hggtk.hginit import run
+ if dest:
+ opts['files'] = [dest]
+ run(**opts)
+
def log(ui, *pats, **opts):
"""changelog viewer"""
from hggtk.history import run
@@ -448,6 +455,7 @@ "^clone": (clone, [], _('hgtk clone SOURCE [DEST]')),
"^commit|ci": (commit, [], _('hgtk commit [FILE]...')),
"^datamine": (datamine, [], _('hgtk datamine')),
+ "^init": (hginit, [], _('hgtk init [DEST]')),
"^log|history": (log, [], _('hgtk log [FILE]')),
"^merge": (merge, [], _('hgtk merge')),
"^recovery": (recovery, [], _('hgtk recovery')),
|
Loading...