getting svn tag in version

A

Andrea Crotti

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

Irmen de Jong

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top