finding the revision that introduced a line of code
Aaron Bentley
aaron at aaronbentley.com
Fri Sep 6 19:36:03 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 13-09-06 03:27 PM, John Arbash Meinel wrote:
> On 2013-09-06 22:48, Lucio Crusca wrote:
>> How do I find the revision, assuming the source file is named
>> MyClass.java and the line number is 471?
>
>
> generally you can do
>
> bzr annotate [--long] MyClass.java
Or, bzr log -r annotate:MyClass.java:471
I often use this with lp-find-proposal for:
bzr lp-find-proposal -r mainline:annotate:MyClass.java:471
("What was discussed when this line was changed?")
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
iEYEARECAAYFAlIqLqMACgkQ0F+nu1YWqI3qxwCfQuAXG03iCDQl4jf12OIX+/WR
lJIAnAuhryzJIevVB9olPbJPjI+Sh1LG
=NS2m
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list