bzr add and recurse

Michael Ellerman michael at ellerman.id.au
Tue May 31 01:21:43 BST 2005


On Tue, 31 May 2005 01:55, William Dodé wrote:
> On 30-05-2005, Martin Pool wrote:
> > On Mon, 2005-05-30 at 00:44 +1000, Michael Ellerman wrote:
> >> On Sun, 29 May 2005 21:42, William Dodé wrote:
> >> > Now ``bzr add`` has recurse=True by default, i would prefer False by
> >> > default, but anyway, it's not possible to choose even if the function
> >> > has already this possibility.
> >>
> >> I don't see the point of non-recursive mode.
> >
> > There are some cases.  One is that you only want to add some of the
> > files, but you haven't set up the right ignore options.  (I'd want to
> > encourage people to just get the ignore patterns right and avoid trouble
> > later, but some people might not.)  Another is that you want to add the
> > files across a series of commits for some reason.  Of course in either
> > case you can just add the lot and then remove the ones you don't want.
> >
> > I've just added --no-recurse but the default is to recurse down.  I love
> > 'bzr add .'
>
> Is there (or will be) a way to see wich files will be added recursivly
> before ?

You mean before they're added? I don't think so. But if you add and then 
remove before checking in it's a nop, as if you never added it.

I think add should be more verbose by default, and show you which files are 
being added. Otherwise it's not obvious that it's recursing if you don't 
expect it to.

Perhaps it should just print out the note line eg. "* added 10" in non-verbose 
mode and print each file that's added in verbose mode. If people want it we 
can add a --quiet to turn all output off for scripts.

cheers

-- 
Michael Ellerman
IBM OzLabs

email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050531/b1198a20/attachment.pgp 


More information about the bazaar mailing list