Problem with bzr without default ignore list.

John Arbash Meinel john at arbash-meinel.com
Mon Jul 10 18:12:13 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Erik Bågfors wrote:

...

> 
> I have to say that I really like the fact that it's quick to get
> started with bzr and it does sane things by default.  I like
> 
> cd myproject
> bzr init
> bzr add
> bzr ci -m 'foo'
> 
> I don't like
> cd myproject
> bzr init
> bzr add
> # Shit, that added to much
> # Now where do I have a sane .bzrignore file?
> cp /path/to/.bzrignore .
> bzr revert
> bzr add
> bzr ci -m foo
> 
> Of course, having a user global ignore file makes this somewhat
> better, but not good enough.
> 
> Regards,
> Erik
> 

I agree that having it simple is nice. It just turns out that our fancy
defaults can't be overridden, and have the property that we spend 6/10s
in 'bzr add' of a kernel sized tree checking if the file is ignored.

global user-level ignores solve some of this. (and also handles the
complaint that '.swp' is a user-specific ignored file, and maybe not
everyone should be ignoring it...)

Having a default value for the global user ignore that is used if the
file is not present seems reasonable to me. We can even make it a
trimmed-down version, so it just avoids the worst files (py[co], .o, etc).

One downside is that then adding a single entry to ~/.bazaar/ignore, and
all of them show up again.
We can add a command that makes it easy to populate ~/.bazaar/ignore
with the current default list, and open up EDITOR on that file, so you
can configure it to what you want.

Another possible action is that we can have 'bzr init' drop a default
.bzrignore into the project. Again, this one should probably be a
minimal but sufficient set.

These are not exclusive, we can actually do both. I think we need to
include a default *something* for compatibility with bzr-0.8, but how we
handle new projects needs to be discussed.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEsoptJdeBCYSNAAMRAkMTAJ9od16SFkeXLmizzovfemOcosMW0ACeLNfr
+/0sy9KdtPSwtI7knOcvO2Y=
=Bb7c
-----END PGP SIGNATURE-----




More information about the bazaar mailing list