run_bzr() fails unless you set a ui factory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Martin Pool |
Bug Description
If you just call run_bzr() without setting a ui factory, it fails.
mwh@grond:~$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from bzrlib.commands import run_bzr
>>> run_bzr([])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
cmd_
File "/usr/lib/
self.
File "/usr/lib/
encoding_
File "/usr/lib/
out_stream = self._make_
File "/usr/lib/
% (self._
NotImplementedE
>>>
This is a bit unfriendly. This is with version 2.1.0+b1+
Easy to do, but the question is: should the default be to silently absorb the output, or to write it to stdout? Or maybe the default should actually be a text uifactory?