annotate -rNNN for a removed file

Philippe Lhoste PhiLho at GMX.net
Tue Feb 1 12:24:51 UTC 2011


On 01/02/2011 00:23, Andrew King wrote:
> qbzr does not have this problem though ... you can do bzr qannotate -r 103030
> src/strftime.c and it should work.

Interesting, somehow I missed (or forgot) this feature!
OK, my annotate log is pretty boring, as I am the only one working on my files, but still 
it is a good view of the history of a file.

BTW, is there any plan to be able to specify a tab size for all Qxxx windows (diff, 
annotate, etc.)? 8 spaces per tab is a bit too much. Ideally, one should be able to set 
this per branch/project (or, ideally, per file type in a given project).

If somebody is working on the bug, might I suggest another improvement?
If I go to QLog and right-click on a removed file (displayed in red, so identified as 
being deleted) to choose Annotate, I get the following error dialog over the Annotate window:

bzr: ERROR: The file id "prootshape.java-20100506[...]" is not present in the tree 
<bzrlib.inventory.CHKInventory object at 0x018EAFD0>.

I can get the annotate window when doing the same operation on an instance of the file 
shown on a previous revision.
It would be nice if:
1) The annotate history (bottom left) could show the revision where the file was deleted. 
That would answer Eli's question ("Btw, is there an easy way of knowing in which revision 
a specific file was removed?")
2) If we could do the operation described above, and QLog (or QAnnotate) could see the 
file is deleted there, so would take the previous revision. I suppose that if the soft is 
able to tell me that a file was deleted in a given revision, it can guess that this file 
existed in the previous revision (necessarily?).

Just some suggestions, as I can't hack Python code myself.

-- 
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --




More information about the bazaar mailing list