Revision of last change in FILE
Eli Zaretskii
eliz at gnu.org
Sat Nov 19 12:55:33 UTC 2011
> From: Alexander Belchenko <bialix at ukr.net>
> Date: Sat, 19 Nov 2011 11:30:28 +0200
>
> Eli Zaretskii пишет:
> > When I need to know which revision made the last change in a certain
> > file, I use this command:
> >
> > bzr log --line -l1 FILE
> >
> > This works, but is somewhat slow, and also not very ergonomic from the
> > POV of how much one needs to type for such a simple task. (Of course,
> > I could make an alias.)
> >
> > Is there a better way? All I need to know is the revno, nothing else.
>
> There is a plugin to do exactly that task.
>
> http://www.robf.de/Hacking/bazaar/bzr_file_revno/
Thanks! This is faster than using tip:1 (4.2 sec in the Emacs
repository on my 6.5-year old XP box).
> I've used it couple of years ago, maybe it needs to be updated to
> current bzrlib API.
It still works with fine bzr 2.4.2. But it does a lot of disk I/O, so
perhaps the current bzrlib could make it do less I/O.
More information about the bazaar
mailing list