new status output

Matthieu Moy Matthieu.Moy at imag.fr
Wed Oct 19 16:21:05 BST 2005


Aaron Bentley <aaron.bentley at utoronto.ca> writes:

> Jan Hudec wrote:
>> On Wed, Oct 19, 2005 at 15:49:52 +0200, Wouter van Heyst wrote:
>>>Also have a look at clean-tree in bzrtools.
>
>> That may do the | xargs rm case, but it won't do the | xargs
>> whatever-script case. And besides, it is the _wrong_ approach to it. The
>> pipe is the right approach -- don't invent new tools when there is such
>> a powerfull shell already.
>
> Respectfully disagree.  This is a common operation that's worth making
> easy, and bzr clean-tree is easier than |xargs, not to mention more
> correct, because it handles files with spaces and newlines properly.
>
> Also, bzr is supposed to work on windows, where shell scripting is much
> weaker.

I agree with both of you ;-).

The pipe mechanism is the most flexible. It could work with spaces if
bzr had an option similar to "find"'s -print0. It is good to have it,
because it allows users to treat cases that bzr developers didn't
think about.

Still, it's nice to provide (improved) shortcuts for the most common
particular cases. But IMO, this should come /in addition/ to the
pipe-friendly interface.

-- 
Matthieu




More information about the bazaar mailing list