bzr-update-copyright
John Arbash Meinel
john at arbash-meinel.com
Thu Jan 7 20:58:42 GMT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gordon Tyler wrote:
> On 07/01/2010 3:31 PM, John Arbash Meinel wrote:
>> I just hacked together a new plugin, which I thought people might be
>> interested in. It is currently available from:
>> bzr branch lp:~jameinel/+junk/bzr-update-copyright update_copyright
>>
>> The basic idea is that it will look in the bzr data to determine when
>> the file was modified and then update a Copyright line.
>
> Neat! I never thought of using VCS history to update that.
>
>> Running this over bzr.dev shows 609 files updated. I'm not 100% sure if
>> we want to use this or not. But I was getting annoyed manually update
>> the lines when I came across them, when I know that we already have that
>> data available.
>
> How about an option to make it only operate on files which are currently
> modified or added in the working tree?
>
> Ciao,
> Gordon
>
You can give it a list of files to work on. If the files are newly
added, then they don't have any history to work on. Otherwise you could
probably do:
bzr status | xargs bzr update-history
That would fail for files with spaces, etc, but it would approximately
do the right thing. (I also skip unknown files, so "modified:" will just
get skipped.)
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAktGSwIACgkQJdeBCYSNAAPe0ACfQgkxwXvHO1uygA92M1RNO0XI
eosAni/txliBBDb98xKZ7WB0R33w3u0d
=WDnJ
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list