Changeset 0404f701011f…
Parent 7eb6acf1f07a…
by
Changes to 2 files · Browse files at 0404f701011f Showing diff from parent 7eb6acf1f07a Diff from another changeset...
@@ -304,6 +304,11 @@ from tortoisehg.hgqt.clone import run
qtrun(run, ui, *pats, **opts)
+def shellconfig(ui, *pats, **opts):
+ """Explorer extension configuration editor"""
+ from tortoisehg.hgqt.shellconf 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
@@ -519,3 +524,8 @@table = {
"^clone": (clone, [], _('hgtk clone SOURCE [DEST]')),
}
+
+if os.name == 'nt':
+ # TODO: extra detection to determine if shell extension is installed
+ table['shellconfig'] = (shellconfig, [], _('hgtk shellconfig'))
+
|
@@ -283,6 +283,9 @@ list.setCurrentItem(None)
self.update_states()
+def run(ui, *pats, **opts):
+ return ShellConfigWindow()
+
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
form = ShellConfigWindow()
|
Loading...