Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

hgtk: add vdiff command

Changeset 10bca3c281b3

Parent c77e2501d236

by Steve Borho

Changes to one file · Browse files at 10bca3c281b3 Showing diff from parent c77e2501d236 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​hgtk.py Stacked
 
263
264
265
266
267
268
269
 
283
284
285
 
 
 
 
 
 
 
286
287
288
 
503
504
505
 
506
507
508
 
263
264
265
 
266
267
268
 
282
283
284
285
286
287
288
289
290
291
292
293
294
 
509
510
511
512
513
514
515
@@ -263,7 +263,6 @@
    Also do add, remove and revert.   """ -   from hggtk.status import run   opts['files'] = [os.path.abspath(x) for x in pats]   run(**opts) @@ -283,6 +282,13 @@
  from hggtk.update import run   run(**opts)   +def vdiff(ui, *pats, **opts): + """launch configured visual diff tool""" + from mercurial import dispatch + vdiff = ui.config('tortoisehg', 'vdiff', 'vdiff') + if vdiff: + dispatch.dispatch([vdiff] + list(pats)) +  ### help management, adapted from mercurial.commands.help_()  def help_(ui, name=None, with_version=False):   """show help for a command, extension, or list of commands @@ -503,6 +509,7 @@
  [('', 'webdir-conf', '', _('name of the webdir config file'))],   _('hgtk serve [OPTION]...')),   "^update|checkout|co": (update, [], _('hgtk update')), + "^vdiff": (vdiff, [], _('launch visual diff tool')),   "^version": (version,   [('v', 'verbose', None, _('print license'))],   _('hgtk version [OPTION]')),