Can we get a recursive log?
John Arbash Meinel
john at arbash-meinel.com
Wed Aug 13 17:55:29 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Nicholas Allen wrote:
> This would be very useful. Anyone know if it is currently possible?
>
> Cheers,
>
> Nick
>
> Talden wrote:
> | I regularly use "bzr log" to see recent revisions and "bzr log
> | somefile" to see revisions in which that file has changed.
> |
> | However in Subversion I also regularly do "svn log somedirectory" to
> | see in which revisions that directory _or_it's_contents_ were changed.
> |
> | Getting this 'recursive log' is non-obvious to me in Bazaar. Is there
> | a straight-forward means to listing all the revisions in which changes
> | were made to any file or directory under 'somedirectory'?
> |
> | --
> | Talden
> |
>
It would be possible, but computationally expensive with the current
recorded data.
There are a couple ways to try and "cheat" but they fail with certain
edge cases.
So the way to do it now, is to compute the changes between each revision
and its parent, and see if anything involving the given directory or
anything underneath it is effected.
The code could be cribbed from the 'bzr log -v' which does compute the
delta for each revision.
I personally feel our "bzr log" code is in serious need of an overhaul,
for a variety of reasons. But that is not specifically related.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkijEgEACgkQJdeBCYSNAAMWBgCaA0KJwv0hwur0I+P8qfxrGGwu
hgMAnjDOtui//vaUijvF3hcFgUB1MpCi
=A0W0
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list