History of a source line
John Arbash Meinel
john at arbash-meinel.com
Wed Mar 31 21:58:11 BST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eli Zaretskii wrote:
> Is there any bzr commands or plugins that can show all the revisions
> that changed a certain source line?
>
> Many times I need to do some forensic research to understand why some
> code is written like it is. With a large and old package such as
> Emacs, the origins of some code fragments are lost in time. It is
> easy to see the last change with "bzr annotate" and "bzr diff -c", but
> if you want to see beyond that, you need to grep ChangeLog files, look
> for the revisions corresponding to the entries you _think_ may be
> relevant, and that's a tedious and boring job. And if you are unlucky
> and the ChangeLog entry was not made at the time, it becomes an almost
> impossible job, certainly an impractical one.
>
> Does Bazaar offer any cure for this?
>
> TIA
>
>
bzr qannotate
and
bzr gannotate
Both support viewing the current annotation, and stepping back through
history for the file as it was modified over time.
You can use "bzr log -p FILE" to see the diffs for the file every time
it was modified, but this doesn't filter based on the line you are
investigating.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkuzt2MACgkQJdeBCYSNAAOg3wCbBrbga/S/RNm96L1LmkIAEH4C
OTQAn0s3o9QD5Tn6PSg2yNrjjR6FkdUN
=5CUn
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list