[MERGE] no default ignores

Robert Collins robertc at robertcollins.net
Fri Jun 16 11:42:46 BST 2006


On Tue, 2006-06-13 at 20:52 +0200, Denys Duchier wrote:
> John Arbash Meinel <john at arbash-meinel.com> writes:
> 
> > I think a better way would be to use an internal function. Though it
> > looks like 'bzr ignore' just writes the file itself. That really should
> > be factored out.
> 
> Would it not be nice if commands could be made (safely) available through the
> bzrlib library?  The way I would be inclined to do it would be to add a
> "context" parameter to a command's __init__, and to use it in particular to
> replace the many hardcoded occurrences of u'.' (e.g. by self.context.root).
> 
> Is this a good/bad idea?  what else would need careful handling?

You can use commands safely from the library, if you want the same
precise behaviour that run_bzr_command offers.

Myself, I often want the behaviour but not the UI of a command, when I'm
writing something that uses bzrlib, which is why we have the three
layers:

* UI
* A small facade of convenience routines that matches the UI
* The domain model.

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060616/ff2626c3/attachment.pgp 


More information about the bazaar mailing list