[MERGE] Add support for -x or --exclude to bzr commit, fixing bug 3117. (Robert Collins)
Robert Collins
robertc at robertcollins.net
Mon Aug 4 23:00:02 BST 2008
On Mon, 2008-08-04 at 10:58 +0100, James Westby wrote:
> On Mon, 2008-08-04 at 17:33 +1000, Robert Collins wrote:
> > This fixes bug 3117, adding a -x option to commit -
> > bzr commit -x foo -x bar
> > now means 'commit everything except for foo and bar'.
>
> Hi Rob,
>
> Thanks for working on this, it looks good for the most part
> to me.
>
> I have two comments though.
>
>
> > --- bzrlib/commit.py 2008-04-24 07:22:53 +0000
> > +++ bzrlib/commit.py 2008-08-04 07:29:51 +0000
> > @@ -204,7 +204,8 @@
> > reporter=None,
> > config=None,
> > message_callback=None,
> > - recursive='down'):
> > + recursive='down',
> > + exclude=None):
>
> Isn't this an API break for tree.commit() ?
No, its adding a keyword parameter which is fine; someone using the
older API will still find bzr working as expected.
> Also, I would like to see a test for your assertion in the help
> text, that "commit foo -x foo/bar" commits everything in foo
> except foo/bar.
I don't think this is really needed - the way things are structured its
a bit of a tautology; but I can add it as I'm doing the below.
> I'd perhaps also like to see a test that
> "commit foo -x foo" raises PointlessCommit, assuming that is
> the intent.
Thats a good test to have; I will add it and resubmit.
-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: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080805/f7981587/attachment.pgp
More information about the bazaar
mailing list