finding the revision that introduced a line of code

John Arbash Meinel john at arbash-meinel.com
Fri Sep 6 19:27:38 UTC 2013


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

On 2013-09-06 22:48, Lucio Crusca wrote:
> Hello *,
> 
> I've been using bazaar for a short time, about two months doing
> only "standard" things, so I'm quite new to it.
> 
> Now I need to find what revision introduced a particular line of
> code, because I forgot to comment that change in the sources and
> now I have to decide if that line is still useful or not, and I'm
> hoping the commit message will tell me...
> 
> 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

Though I really like the 'bzr qannotate' from qbzr (it lets you easily
browse older/newer revisions of the file, get the diff, see the
revision graph, etc)

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlIqLKoACgkQJdeBCYSNAAMDHACdEgDqAovT3a0/AmgepGdO/jLU
LEMAniqK9o5jw4dI+zNpco/OPy8C0g5M
=4H/1
-----END PGP SIGNATURE-----



More information about the bazaar mailing list