Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

hgqt/run.py: add shellconfig

Changeset 0404f701011f

Parent 7eb6acf1f07a

by Adrian Buehlmann

Changes to 2 files · Browse files at 0404f701011f Showing diff from parent 7eb6acf1f07a Diff from another changeset...

 
304
305
306
 
 
 
 
 
307
308
309
 
519
520
521
 
 
 
 
 
 
304
305
306
307
308
309
310
311
312
313
314
 
524
525
526
527
528
529
530
531
@@ -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
284
285
 
 
 
286
287
288
 
283
284
285
286
287
288
289
290
291
@@ -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()