'forget' the recently added files

Matthieu Moy Matthieu.Moy at imag.fr
Sat May 27 17:27:33 BST 2006


Joris Putcuyps <joris.putcuyps at skynet.be> writes:

> Well, as a Linux user, I like that idea, but without the 'ls' and
> '--null'. e.g. 'bzr --added | xargs -0 bzr'.

Removing the command (ls) to use only options is completely opposed to
the principle of bzr's CLI (like it would be for CVS, and many other
tools).

The --null option would mean "separate entries with '\0'", which is
used then by the -0 of xargs, and allows spaces and newlines in
filenames. OTOH, it makes the output unreadable for a human (try
"find . -print0" which is the equivalent for find), so making it the
default would not make sense.

But you can still do

  bzr ls --added | xargs bzr remove

if you have no whitespace in your filenames.

-- 
Matthieu




More information about the bazaar mailing list