pankajit / solr-php-client

Automatically exported from code.google.com/p/solr-php-client
Other
0 stars 1 forks source link

Add svn version and identifier methods to all classes #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Since there are various changes that make it useful to identify one
specific rev as the desired version to use, and to insure that the correct
one is installed, it would be useful to add svn keywords and make some of
the svn values available as class methods.  This is what Solr itself does
in the admin interface and code to allow ready tracking of the code being run.

e.g. from Solr trunk (1.4)
src/java/org/apache/solr/handler/FieldAnalysisRequestHandler.java

  @Override
  public String getVersion() {
    return "$Revision: 771099 $";
  }

  @Override
  public String getSourceId() {
    return "$Id: FieldAnalysisRequestHandler.java 771099 2009-05-03
18:47:50Z shalin $";
  }

note:

svn propset svn:keywords "Revision Id" Apache/Solr/*.php Apache/Solr/*/*.php

Original issue reported on code.google.com by pwola...@gmail.com on 24 Jul 2009 at 1:42

Attachments:

GoogleCodeExporter commented 9 years ago
This is a great idea, thank you very much. Since I'm already using class 
constants, I decided to continue their use 
for this purpose rather than static class methods - a bit more compact.  See r15

Original comment by donovan....@gmail.com on 4 Aug 2009 at 5:56