rm with bzr

Matthew D. Fuller fullermd at over-yonder.net
Mon Nov 20 08:52:40 GMT 2006

On Mon, Nov 20, 2006 at 12:58:59AM +0800 I heard the voice of
Alex Chen, and lo! it spake thus:
> Is this  behavior intentioned?

It is.  It does come up for debate occasionally, though.

> How to know what files I removed?

Looking through the log should tell you.  You'll need "log -v" to show
the files in each revision.

> What should I do to get the files back?  Must I branch a revision
> which has  those files and copy the removed files back to trunk?

If you can find the revision they disappeared in, you should be able
to do a "bzr revert -r123 some_file" (where 123 is the revision
_before_ they disappeared) to bring it back around.  Doing it that way
will also preserve their file-id; doing a branch (or checkout) of the
old rev and just copying the file won't do that.

> When I use 'bzr st', there will be a lot of files listed as unknown.
> Since  I'm only interested in Modified, Added, renamed and so on,
> and lasy to add  all the Unknown files to ignore list, is there any
> option to suppress the  displaying of unknowns?

Well, you could just ignore '*'   ;p

Matthew Fuller     (MF4839)   |  fullermd at over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.

More information about the bazaar mailing list