Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove unknown files in Bazaar

Tags:

bazaar

I have a bunch of unknown files in my Bazaar working tree that I no longer want. I can get a list of them using bzr stat, but I'd like an easy way to get rid of them. (I'd expect an option for bzr revert to do this, but I'm not finding one.)

I can always write a tiny script to parse the output of bzr stat and rm or mv the unknowns, but I thought something might already exist.

I have Bazaar (bzr) 1.13.1.

like image 406
Benjamin Oakes Avatar asked Feb 23 '10 15:02

Benjamin Oakes


1 Answers

bzr clean-tree will get rid of all unknown files in a working tree. It also has switches to remove ignored files, merges backups and other types of unwanted files. See bzr clean-tree --usage for full details.

Edit to add: This is true for Bazaar 2.0.0, I'm not sure about 1.13

like image 169
Adam Glauser Avatar answered Oct 23 '22 03:10

Adam Glauser