ANN: clean-ignored plugin
John Arbash Meinel
john at arbash-meinel.com
Wed Feb 1 14:49:27 GMT 2006
Erik Bågfors wrote:
> 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
I think 'bzr rm' should delete the file, and 'bzr remove' should only
remove it from source control. I don't really like to always type "bzr
rm foo; rm foo".
If you don't like the names, I supposed it could be "bzr delete" to both
delete the file, and remove it from bzr control. I don't really care, I
just want that command.
And if we have that command, it would make sense to tack on "bzr delete
--all-ignored".
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060201/1a3e591a/attachment.pgp
More information about the bazaar
mailing list