Changeset 966043d60b7c…
Parent 6a5495197a79…
by
Changes to one file · Browse files at 966043d60b7c Showing diff from parent 6a5495197a79 Diff from another changeset...
@@ -239,6 +239,7 @@ raise error.RepoError(_("There is no Mercurial repository here"
" (.hg not found)"))
+ cmdoptions['mainapp'] = True
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
return _runcommand(lui, options, cmd, d)
@@ -373,6 +374,11 @@ from tortoisehg.hgqt.workbench import run
qtrun(run, ui, *pats, **opts)
+def vdiff(ui, *pats, **opts):
+ """launch configured visual diff tool"""
+ from tortoisehg.hgqt.visdiff import run
+ qtrun(run, ui, *pats, **opts)
+
### help management, adapted from mercurial.commands.help_()
def help_(ui, name=None, with_version=False, **opts):
"""show help for a command, extension, or list of commands
@@ -613,6 +619,11 @@ [('C', 'clean', None, _('discard uncommitted changes (no backup)')),
('r', 'rev', '', _('revision to update')),],
_('thg update [-C] [[-r] REV]')),
+ "^vdiff": (vdiff,
+ [('c', 'change', '', _('changeset to view in diff tool')),
+ ('r', 'rev', [], _('revisions to view in diff tool')),
+ ('b', 'bundle', '', _('bundle file to preview'))],
+ _('launch visual diff tool')),
}
if os.name == 'nt':
|
Loading...