Changeset 10bca3c281b3…
Parent c77e2501d236…
by
Changes to one file · Browse files at 10bca3c281b3 Showing diff from parent c77e2501d236 Diff from another changeset...
@@ -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]')),
|
Loading...