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

run: add a test command, for debugging use

Changeset 560293cc0719

Parent 867f6f116db2

by Steve Borho

Changes to one file · Browse files at 560293cc0719 Showing diff from parent 867f6f116db2 Diff from another changeset...

 
297
298
299
300
 
 
301
302
303
 
308
309
310
311
 
 
 
312
313
314
 
319
320
321
322
 
323
324
325
 
332
333
334
 
 
 
 
 
335
336
337
 
579
580
581
 
582
583
584
 
297
298
299
 
300
301
302
303
304
 
309
310
311
 
312
313
314
315
316
317
 
322
323
324
 
325
326
327
328
 
335
336
337
338
339
340
341
342
343
344
345
 
587
588
589
590
591
592
593
@@ -297,7 +297,8 @@
    if QtGui.QApplication.instance():   dlg = dlgfunc(ui, *args, **opts) - dlg.show() + if dlg: + dlg.show()   return     mainapp = QtGui.QApplication(sys.argv) @@ -308,7 +309,9 @@
  mainapp.setApplicationVersion(thgversion.version())   try:   dlg = dlgfunc(ui, *args, **opts) - dlg.show() + if dlg: + dlg.show() + mainapp.exec_()   except Exception, e:   from tortoisehg.hgqt.bugreport import run   error = _('Fatal error opening dialog\n') @@ -319,7 +322,7 @@
  opts['nofork'] = True   bugreport = run(ui, **opts)   bugreport.show() - mainapp.exec_() + mainapp.exec_()   mainapp = None    def thgstatus(ui, *pats, **opts): @@ -332,6 +335,11 @@
  from tortoisehg.hgqt.clone import run   qtrun(run, ui, *pats, **opts)   +def test(ui, *pats, **opts): + """bug report dialog""" + from tortoisehg.hgqt.chunkselect import run + qtrun(run, ui, *pats, **opts) +  def bug(ui, *pats, **opts):   """bug report dialog"""   from tortoisehg.hgqt.bugreport import run @@ -579,6 +587,7 @@
  _('use uncompressed transfer (fast over LAN)')),],   _('thg clone [OPTION]... SOURCE [DEST]')),   "bug": (bug, [], _('thg bug [MESSAGE]')), + "test": (test, [], _('thg test')),   "help": (help_, [], _('thg help [COMMAND]')),   "^update|checkout|co":   (update,