rm with bzr

Alex Chen alex.chen.hl at gmail.com
Sun Nov 19 16:58:59 GMT 2006


I'm a bzr newbie come from cvs. I put all my workspace under bzr  
controlling with "bzr init".
One day, I "rm"ed some files by mistake, then I did a check-in. And  
several days later, I noticed that there missing some files. Then I use  
"bzr update", and expected the 'rm'ed files will show up as my experience  
with cvs. But nothing happened, bzr told me it's update-to-date already.
I do some test later. I found when I "rm" a file and check-in, bzr will  
report the file as "removed" as if you had do "bzr remove" on it. Is this  
behavior intentioned? What's the benefit of this behavior that could  
exceed the risk of mis-action?

How to know what files I removed?
"bzr log ." only showed the "initial" revision. Is the files adding and  
removing a kind of change for directory? If it is, why not log report the  
related revision?(I have check-in for adding or removing files for several  
times under this directory);
"bzr diff ." show a lot of infos including file content differences, and I  
cannot find the option to only display the difference at file level as  
"foo.c ADDED; Boo.h CHANGED"

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?

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?

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




More information about the bazaar mailing list