1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

TK Soh  committed c4c35f2

tortoise: workaround win32trace's missing 'closed' attribute

  • Participants
  • Parent commits 95f39c6
  • Branches default

Comments (0)

Files changed (2)

File tortoise/contextmenu.py

View file
 from mercurial import repo as _repo
 from thgutil import *
 
+# FIXME: quick workaround traceback caused by missing "closed" 
+# attribute in win32trace.
+import sys
+from mercurial import ui
+def write_err(self, *args):
+    for a in args:
+        sys.stderr.write(str(a))
+ui.ui.write_err = write_err
+
 S_OK = 0
 S_FALSE = 1
 

File tortoise/iconoverlay.py

View file
 import thgutil
 import sys
 
+# FIXME: quick workaround traceback caused by missing "closed" 
+# attribute in win32trace.
+from mercurial import ui
+def write_err(self, *args):
+    for a in args:
+        sys.stderr.write(str(a))
+ui.ui.write_err = write_err
+
 # file/directory status
 UNCHANGED = "unchanged"
 ADDED = "added"