Author: bugman Date: Wed Feb 6 12:09:38 2013 New Revision: 18430 URL: http://svn.gna.org/viewcvs/relax?rev=18430&view=rev Log: The relax program introduction now includes the revision number for subversion checked out copied. This allows for better identification of the code base being used. Modified: trunk/info.py Modified: trunk/info.py URL: http://svn.gna.org/viewcvs/relax/trunk/info.py?rev=18430&r1=18429&r2=18430&view=diff ============================================================================== --- trunk/info.py (original) +++ trunk/info.py Wed Feb 6 12:09:38 2013 @@ -47,7 +47,7 @@ # relax module imports. from status import Status; status = Status() -from version import version, version_full +from version import revision, version, version_full class Info_box(object): @@ -271,7 +271,11 @@ intro_string = '\n\n\n' # Program name and version. - intro_string = intro_string + self.centre(self.title + ' ' + self.version, status.text_width) + '\n\n' + if version == 'repository checkout': + text = "%s %s r%s" % (self.title, self.version, revision()) + else: + text = "%s %s" % (self.title, self.version) + intro_string = intro_string + self.centre(text, status.text_width) + '\n\n' # Program description. intro_string = intro_string + self.centre(self.desc, status.text_width) + '\n\n'