generally invoking "svnversion" is the easiest way to get this. i.e.
"svnversion ./trunk" return the subversion version # for the directory "trunk". -joe On 6/15/07, David Reynolds <[EMAIL PROTECTED]> wrote: > Gabor, > > On 15 Jun 2007, at 9:18 am, Gábor Farkas wrote: > > > > > hi, > > > > in my project i need to get the svn-revision-number of the project > > somehow. > > > > in other words, i need to be able to find out my project's revision > > number in python > > > > (i am not talking about django's revision-number. i'm talking about my > > own revision number) > > > > > > the best way i could find is to execute "svnversion" and get it's > > output. > > i'm planning to do this in settings.py.... is there a better way? > > > > How about using pysvn? [http://pysvn.tigris.org/] which I think is > the same as doing apt-get install python-subversion on Debian. These > give you python svn client bindings so you should be able to use that > to find out the revision number. > > Cheers, > > Dave > > -- > David Reynolds > [EMAIL PROTECTED] > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---