calling Command._setup_outf() in run_argv_aliases() prevents from wrapping cmd_log
Adeodato Simó
dato at net.com.org.es
Fri Jul 21 19:15:19 BST 2006
Hi.
Consider the attached dummy plugin. bzr log2 -r1 works fine with 0.8,
while with 0.9 gives:
bzr: ERROR: exceptions.AttributeError: 'cmd_log' object has no attribute 'outf'
This is because self._setup_outf() is invoked in run_argv_aliases(),
which when calling run() from other command is not invoked.
If I'm not mistaken, using other cmd_foo().run() in plugins is not an
unexpected use of the API, so I wonder if this can be addressed.
Thanks,
--
Adeodato Simó dato at net.com.org.es
Debian Developer adeodato at debian.org
A pretty boy like you
With hands that could break me in two
But don't
-- Anja Garbarek, Can I keep him?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log2.py
Type: text/x-python
Size: 313 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060721/3bef0695/attachment.py
More information about the bazaar
mailing list