PSCalib/src/SvnProps.py

Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #------------------------------
00003 """
00004 Class SvnProps stores updated by svn properties.
00005 
00006 NOTE: To update revision number in this file when revision changes, use command:
00007 psvn mktxtprop src/SvnProps.py
00008 or
00009 svn propset svn:keywords "Revision" src/SvnProps.py
00010 Also see: ~/.subversion/config
00011 
00012 This software was developed for the SIT project.
00013 If you use all or part of it, please give an appropriate acknowledgment.
00014 
00015 @version $Id: SvnProps.py 9205 2014-11-05 00:58:52Z dubrovin@SLAC.STANFORD.EDU $
00016 
00017 @author Mikhai S. Dubrovin
00018 """
00019 
00020 #------------------------------
00021 # Properties substituted by SVN 
00022 #------------------------------
00023 # __revision__ = "$Revision: 9216 $"
00024 # __author__   = "$Author: dubrovin@SLAC.STANFORD.EDU $"
00025 #------------------------------
00026 
00027 import sys
00028 
00029 #------------------------------
00030 
00031 class SvnProps :
00032     def __init__(self) : 
00033         self.updated  = "2014-05-05"
00034         self.revision = "$Revision: 9216 $"
00035         self.author   = "$Author: dubrovin@SLAC.STANFORD.EDU $"
00036         self.id       = "$Id: SvnProps.py 9205 2014-11-05 00:58:52Z dubrovin@SLAC.STANFORD.EDU $"
00037         self.headurl  = "$HeadURL: https://pswww.slac.stanford.edu/svn/psdmrepo/PSCalib/trunk/src/SvnProps.py $"
00038         self.header   = "$Header:$"
00039         self.datelc   = "$LastChangedDate: 2014-11-04 16:58:52 -0800 (Tue, 04 Nov 2014) $"
00040         self.date     = "$Date: 2014-11-04 16:58:52 -0800 (Tue, 04 Nov 2014) $"
00041 
00042 #------------------------------
00043 
00044 svnprops = SvnProps()  # use it as a singleton
00045 
00046 #------------------------------
00047 
00048 if __name__ == "__main__" :
00049     
00050     print 'svnprops.updated  : %s' % svnprops.updated
00051     print 'svnprops.revision : %s' % svnprops.revision
00052     print 'svnprops.author   : %s' % svnprops.author
00053     print 'svnprops.id       : %s' % svnprops.id
00054     print 'svnprops.headurl  : %s' % svnprops.headurl
00055     print 'svnprops.header   : %s' % svnprops.header
00056     print 'svnprops.datelc   : %s' % svnprops.datelc
00057     print 'svnprops.date     : %s' % svnprops.date
00058 
00059     sys.exit ( 'End of test' )
00060 
00061 #------------------------------

Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7