Commits

Yuya Nishihara  committed 8c926ab

run: enable ui.debug if THGDEBUG is set

  • Participants
  • Parent commits 7df3171

Comments (0)

Files changed (1)

File tortoisehg/hgqt/run.py

             u.setconfig('ui', 'traceback', 'on')
         if '--debugger' in args:
             pdb.set_trace()
+        if 'THGDEBUG' in os.environ:
+            u.setconfig('ui', 'debug', 'on')
         return _runcatch(u, args)
     except error.ParseError, e:
         qtapp.earlyExceptionMsgBox(e)