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 -- http://mail.python.org/mailman/listinfo/python-list