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

PostGIS trac at osgeo.org
Thu Feb 2 16:53:09 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):

 Yes, I meant getting the version as part of the build. The version
 returned by PostGIS_Full_Version() is read from Version.config during the
 build somehow, I'm guessing? I'm proposing a similar thing for the SVN
 revision. Run `svnversion` during the build (`make`), write its output to
 another file, say `Revision.config` (which is SVN-ignored). Then whatever
 reads Version.config can also read Revision.config and append its content
 to the micro version, so PostGIS_Full_Version() returns
     POSTGIS="2.0.0SVN9010" GEOS="...

 or maybe this is more backwards compatible:

 If that's considered a breaking change then maybe a new SQL function?

Ticket URL: <https://trac.osgeo.org/postgis/ticket/1518#comment:6>
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