[MERGE] default user ignores in ~/.bazaar/ignore
Adeodato Simó
dato at net.com.org.es
Thu Jul 13 02:17:39 BST 2006
* John Arbash Meinel [Wed, 12 Jul 2006 19:25:44 -0500]:
> The attached patch changes our default ignore policy, to hopefully bring
> about a nice intermediate.
Nice, thanks a lot!
> 4) Give some nice helper functions in bzrlib/ignores.py, including:
> add_unique_user_ignores(), which takes a list of ignore patterns, and
> only updates ~/.bazaar/ignore if the entry does not exist yet.
^^^^^^^^^^^^^^^^^^^^^^^^
> It still requires reading the file, and parsing the list, but it gives
> plugins a way to do what they need, rather than having all of them do it
> ad-hoc.
Hm. Personally (as a user) I'd prefer if plugins would not touch my
~/.bazaar/ignore, but if you think it's reasonable, no objection.
Only, I'd really request that a function is provided to add a set of
ignores to the current running instance of bzr, but without making them
permanent. (Something like add_runtime_ignores(), which will probably
need a list à-la-DEFAULT_IGNORE.)
I actually have an use case for this: in some configurations, the VCS
migration tool Tailor leaves a log and/or a status file in the top of
the created repository, which are named <name-of-the-project>.{log,state}.
I want bzr to ignore those, but it wouldn't make sense to add them to
the user's default ignore list.
What do you think?
Thanks,
--
Adeodato Simó dato at net.com.org.es
Debian Developer adeodato at debian.org
Create a system that is usable even by idiots, and only idiots will use it.
More information about the bazaar
mailing list