Revision of last change in FILE

Wichmann, Mats D mats.d.wichmann at intel.com
Fri Nov 18 23:47:58 UTC 2011


On Fri, Nov 18, 2011 at 1:18 AM, Eli Zaretskii <eliz at gnu.org> wrote:

> 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.)
>
>

Not really ideal, but here's something I've used in the past, having had
a somewhat similar problem:

bzr annotate FILE | sort -n

the last line after the sort will be annotated with the revno of the last
change,
assuming revnos stay sane :)

One could assuredly play some games with shell commands to put this
together into a single command you can save into a script file...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20111118/6d549db9/attachment.html>


More information about the bazaar mailing list