How to retrieve a file removed X revisions ago?

Asked by Vincent Begaut

Hi,

I came across this situation few hours ago:
I wanted to know when file './my_folder/old_feature.php' was removed from Bazaar, i.e retrieve the culprit revision in order to 'bzr cat -r' that file.
(knowing that this file was removed weeks ago, and my brain memory flushes every weekend...)

I tried "bzr log ./my_folder", thinking it would list the revisions that updated the directory content, without success.
I tried "bzr log ./my_folder/old_feature.php', but bzr complained (justifiably) that this file is not in my working tree.

So far, the only way to retrieve the reference to that lost file, was to "bzr log -v", which lists each revision with the list of files/folders updated, removed, added, renamed, etc.
I am not too happy with that solution though, as it generated too much output to parse.

Any better way to do this kind of lookup in Bazaar?
Thanks a lot (I'm using bzr 1.0 by the way)

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Vincent Ladeuil
Solved:
Last query:
Last reply:
Revision history for this message
Best Vincent Ladeuil (vila) said :
#1

I don't think you can do better than 'bzr log -v' as of today, but there is a bug you may want to subscribe to :

 https://bugs.edge.launchpad.net/bzr/+bug/136942

Revision history for this message
Vincent Begaut (dr-virago) said :
#2

Thanks.
Indeed bug #136942 would be perfect, meanwhile I tried limiting the output of 'bzr log' with options '--line --verbose', but the verbosity is disabled with filter '--line'.
I updated bug #140844 which already addressed this issue.

Revision history for this message
Vincent Begaut (dr-virago) said :
#3

Thanks vila, that solved my question.