Source

rope / rope / base / fscommands.py

Diff from to

File rope/base/fscommands.py

     def __init__(self, root):
         self.hg = self._import_mercurial()
         self.normal_actions = FileSystemCommands()
-        self.ui = self.hg.ui.ui(
-            verbose=False, debug=False, quiet=True,
-            interactive=False, traceback=False, report_untrusted=False)
+        try:
+            self.ui = self.hg.ui.ui(
+                verbose=False, debug=False, quiet=True,
+                interactive=False, traceback=False, report_untrusted=False)
+        except:
+            self.ui = self.hg.ui.ui()
+            self.ui.setconfig('ui', 'interactive', 'no')
+            self.ui.setconfig('ui', 'debug', 'no')
+            self.ui.setconfig('ui', 'traceback', 'no')
+            self.ui.setconfig('ui', 'verbose', 'no')
+            self.ui.setconfig('ui', 'report_untrusted', 'no')
+            self.ui.setconfig('ui', 'quiet', 'yes')
+
         self.repo = self.hg.hg.repository(self.ui, root)
 
     def _import_mercurial(self):