[merge] 'bzr version-info'

John Arbash Meinel john at arbash-meinel.com
Wed Sep 20 16:16:47 BST 2006

Attached is a patch which merges my 'version-info' plugin into bzr
proper. At present, this only provides the 'bzr version-info' command,
though ultimately I would like to update 'setup.py' so that it bundles
version information into the packaged bzr. (That way bzr --version
always includes the exact snapshot it was produced from).

I'm only including a diff, because the bundle includes the history of
the plugin, which makes it quite large.

Having used the command, I think I would also like to see a 'pickle'
format (right now for one of my build steps I output python and then
'eval' the string, which isn't really optimal).

I've also thought about having a C/C++ format. But for my use cases, I
need a customized template, because I wanted multiple version files
inside the global project (lots of libraries). And while 'bzr
version-info --format' does allow you to select a template, it doesn't
allow you to specify the template in the working directory. (Formats
must be registered).

Robert indicated that because this is a new command it has a chance to
make it into 0.11 (since it can't create regressions in other commands).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: version-info.diff
Type: text/x-patch
Size: 35495 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060920/f569c15d/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060920/f569c15d/attachment.pgp 

More information about the bazaar mailing list