Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.6, 0.7, and 0.7.1

hgtk: add init command

Changeset bedd10202c24

Parent 7d0cf16d91e6

by TK Soh

Changes to one file · Browse files at bedd10202c24 Showing diff from parent 7d0cf16d91e6 Diff from another changeset...

Change 1 of 3 Show Entire File contrib/​hgtk Stacked
 
24
25
26
27
 
28
29
30
 
209
210
211
 
 
 
 
 
 
 
212
213
214
 
448
449
450
 
451
452
453
 
24
25
26
 
27
28
29
30
 
209
210
211
212
213
214
215
216
217
218
219
220
221
 
455
456
457
458
459
460
461
@@ -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')),