Revision of last change in FILE

John Arbash Meinel john at arbash-meinel.com
Fri Nov 18 08:33:59 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/18/2011 9:18 AM, Eli Zaretskii 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.)
> 
> Is there a better way?  All I need to know is the revno, nothing
> else.
> 
> Bonus points for a recipe to show the diffs of that last change, 
> without finding out the revno, as in
> 
> bzr diff -c SOMETHING FILE
> 
> where SOMETHING is some revspec which says "the revno where FILE
> was last changed".
> 
> TIA
> 

  bzr version-info --include-file-revisions

gives that information. The data is stored in .bzr/checkout/dirstate
explicitly.

I don't know of anything that exposes it to the user, though the data
is readily accessible.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7GGHcACgkQJdeBCYSNAANRnwCg0s8Q+2RFhbiN/Z5VziUi3bzL
EWoAnisxxShiXOL3ORqZguL1hkSpdrth
=Ag3B
-----END PGP SIGNATURE-----



More information about the bazaar mailing list