version-info request
John Arbash Meinel
john at arbash-meinel.com
Tue Oct 14 23:26:33 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
guerinp at magic.fr wrote:
> Hello,
>
> I use bzr version-info to produce a include file contaning the Revison
> number and Revision Id.
> This is available only on the last revison commited.
> Is is possible to do the same for a particular revision (--revision
> option) to rebuild this include file ?
>
> Kind regards
> Patrice.
>
>
>
>
>
If you do "bzr branch -r XXX" then you'll have a branch at that
particular snapshot to regenerate the file.
However, you're right that "bzr revert -r XXX && bzr version-info" would
not be correct.
As for adding a '--revision' flag, that would be possible. It would
conflict with some of the other ideas like "--check-clean", since you
are assuming everything is clean versus a specific revision.
My feeling is that it makes more sense to actually get the tree at a
particular revision (via branch/pull --overwrite/uncommit &
revert/hypothetical update -r) rather than adding the flag to
'version-info'. That said, it probably wouldn't be very hard to do.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkj1HJkACgkQJdeBCYSNAAOluACcD6oyUWQ9evhaiAnlqiePl2BG
mpYAniTPGbg9UEN5rhFdQE0G2d1Gx52W
=OQXk
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list