How do I list removed and unknown files only?

Aaron Bentley aaron at aaronbentley.com
Fri Mar 28 12:21:59 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nicholas Allen wrote:
> bzr status shows all added and modified files (which is a large list)
> and I would like to be able to copy and paste the removed files and the
> unknown files in bzr mv commands. Unfortunately, bzr puts the removed
> files at the top and the unknown ones at the bottom which makes this
> process painfully annoying.

bzr status --short|grep -E '^(\? | D)'

> I was hoping I could do this:
> 
> bzr ls --unknown --removed --kind=file

There should be a --removed flag, but it should be on status, not ls.
"removed" is the result of comparing one tree to another, and ls doesn't
doesn't do any comparison.  If it did, it would turn into status.

> I think it would be great if each section in the status had an option
> (so --added, --modified and --conflicts would also be options).

I certainly agree about --added and --modified.  The "conflicts" command
already lists conflicts.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH7OLm0F+nu1YWqI0RAptMAJ9+oZUfpGmyLH6+9Ho5DzmBTxJn2ACdG5b7
N7gS7xQNehDB6v1qaqPTAt0=
=uYxl
-----END PGP SIGNATURE-----



More information about the bazaar mailing list