bzr add and recurse

Martin Pool mbp at sourcefrog.net
Mon May 30 05:39:13 BST 2005


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 .'

> [1] Seems this hasn't quite got implemented yet, the attached patch fixes 
> that.

Thanks.

-- 
Martin






More information about the bazaar mailing list