Edgewall Software

Changes between Initial Version and Version 1 of Ticket #12176, comment 2


Ignore:
Timestamp:
Aug 20, 2015, 4:07:56 PM (9 years ago)
Author:
Jun Omae

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12176, comment 2

    initial v1  
    22diff -r 7be798c48b82 tracext/hg/backend.py
    33--- a/tracext/hg/backend.py     Sat Aug 08 11:48:33 2015 +0900
    4 +++ b/tracext/hg/backend.py     Thu Aug 20 23:01:00 2015 +0900
     4+++ b/tracext/hg/backend.py     Thu Aug 20 23:06:36 2015 +0900
     5@@ -118,7 +118,7 @@
     6     has_phasestr = None
     7
     8 except ImportError, e:
     9-    hg_import_error = e
     10+    hg_import_error = exception_to_unicode(e)
     11     ui = object
     12
     13
    514@@ -391,7 +391,10 @@
    615         locale_dir = pkg_resources.resource_filename(__name__, 'locale')
     
    1019+        if hg_import_error:
    1120+            self.log.warn('Failed to load Mercurial bindings (%s)',
    12 +                          exception_to_unicode(hg_import_error))
     21+                          hg_import_error)
    1322+        else:
    1423             try: