getting svn tag in version

Irmen de Jong irmen.NOSPAM at xs4all.nl
Fri Nov 25 09:11:06 EST 2011


On 25-11-2011 12:15, Andrea Crotti wrote:
> Given a project with many eggs, I would like to make it easy to have all the version
> numbers synchronized
> to the upper level SVN version.
> 
> So for example I might have svn tags
> 0.1,
> 0.2
> and a development version.
> The development version should get version -dev, and the others 0.1 and 0.2
> 
> I found few examples around that read and parse the .svn/entries file, is it really
> the best way to do it?

I wouldn't do that, you'll be dependent on the svn implementation. For instance, in svn
1.7, they changed the .svn folder.

Easiest is probably parsing the output of the command line svn:

svn info --xml


Irmen




More information about the Python-list mailing list