1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed 8c926ab

run: enable ui.debug if THGDEBUG is set

  • Participants
  • Parent commits 7df3171
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/run.py

View file
  • Ignore whitespace
             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)