[postgis-devel] [PostGIS] #1518: Report SVN revision in PostGIS_Full_Version

PostGIS trac at osgeo.org
Thu Feb 2 05:19:13 PST 2012

#1518: Report SVN revision in PostGIS_Full_Version
 Reporter:  realityexists  |       Owner:  pramsey      
     Type:  enhancement    |      Status:  new          
 Priority:  medium         |   Milestone:  PostGIS 2.0.0
Component:  postgis        |     Version:  trunk        
 Keywords:                 |  

Comment(by realityexists):

 I think to actually get the SVN revision in a build script and put it into
 an environment variable or a file is quite easy: just run `svnversion`
 inside the working copy, ignoring any errors (in case it's not a working
 copy or SVN is not even installed). That returns the revision of the
 entire working copy (which might be mixed, but hopefully won't be in an
 official build) But this ticket is really about being able to retrieve it
 from an SQL client, so it would need to somehow get from the variable/file
 into the output of PostGIS_Full_Version (or some other SQL function).

Ticket URL: <https://trac.osgeo.org/postgis/ticket/1518#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.

More information about the postgis-devel mailing list