ANN: clean-ignored plugin

Erik Bågfors zindar at gmail.com
Wed Feb 1 14:17:54 GMT 2006


2006/2/1, Wouter Bolsterlee <uws at xs4all.nl>:
> På Wed, Feb 01, 2006 at 07:55:52AM -0600, John Arbash Meinel skrev:
> > Martin Pool wrote:
> > > On  1 Feb 2006, Matthieu Moy <Matthieu.Moy at imag.fr> wrote:
> > >> Alexander Belchenko <bialix at ukr.net> writes:
> > >>
> > >>> Because clean-tree ALWAYS delete unknown files. But I sometimes want to
> > >>> delete ONLY ignored. So Martin's idea to have 'bzr ignored --delete'
> > >>> behaviour for deleting only ignored is very handy for me. I'll take the
> > >>> request.
> > >> So, why not
> > >>
> > >> bzr ignored --delete   => clean-ignored
> > >> bzr unknown --delete   => clean-tree
> > >> bzr inventory --delete => err, no, just kidding ;-)
> > >
> > > That sounds good to me.  It seems to give the most useful functionality,
> > > without proliferating commands.
> > >
> > > (Perhaps people would dislike options that change the fundamental verb
> > > from 'show' to 'delete'?  But it feels reasonable.)
> > >
> >
> > I thought we were actually trying to get rid of the 'bzr ignored' and
> > switch to something like "bzr ls --ignored", because of the
> > proliferation of commands.
> >
> > Also, in unix style, you would use 'bzr ls --ignored -0 | xargs -0 rm'
> >
> > I don't mind making it a little bit easier for users, but I'm not sure
> > that 'bzr ignored --delete' is the answer.
> >
> > In fact, it makes more sense to me to use "bzr rm --all-ignored", since
> > that is the command which is doing the deleting.
>
> To me, John's suggestion is the best so far. The semantics of the commands
> are really clear and non-ambiguous.

Not sure I agree.

from bzr help rm
----
Make a file unversioned.

This makes bzr stop tracking changes to a versioned file.  It does
not delete the working copy.
-----

But now you want bzr rm to remove files, which is not the job of "bzr
rm", but just "rm".

/Erik




More information about the bazaar mailing list