[Python-Dev] Expose Subversion revision number to Python

"Martin v. Löwis" martin at v.loewis.de
Sat Dec 17 18:29:27 CET 2005


Michael Hudson wrote:
> For a different approach, would it be possible to have
> a subversion trigger put the revision number into some file in the
> repository?

Not easily, to my knowledge. Assuming that the export will be made
from a tag, the revision at which the tag was created (along with
the path of the tag) could be added through a wrapper script to
perform the export.

Of course, if the policy to export from a tag is followed, *just*
having the tag name is also sufficient.

Regards,
Martin


More information about the Python-Dev mailing list