Show text output messages when interfacing with bzr.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 25 Jan 2011 01:14:50 +0000 (17:14 -0800)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 25 Jan 2011 01:14:50 +0000 (17:14 -0800)
buildtools/wafsamba/samba_version.py

index 8d1bd3243173824267d9f1710921569ea73d9aa0..5069ea39820148f61d0d72c3e72ba6189060ba43 100644 (file)
@@ -1,13 +1,18 @@
 import os
 import Utils
 import samba_utils
+import sys
 
 def bzr_version_summary(path):
     try:
-        from bzrlib import branch, osutils, workingtree
+        import bzrlib
     except ImportError:
         return ("BZR-UNKNOWN", {})
 
+    import bzrlib.ui
+    bzrlib.ui.ui_factory = bzrlib.ui.make_ui_for_terminal(
+        sys.stdin, sys.stdout, sys.stderr)
+    from bzrlib import branch, osutils, workingtree
     from bzrlib.plugin import load_plugins
     load_plugins()