1. Guilherme Gondim
  2. django-diario

Commits

semente  committed d4408c7

get_version() now don't appends Subversion release.

--HG--
extra : convert_revision : svn%3Aea932676-bf3b-0410-9f11-03e9079df846/trunk%40143

  • Participants
  • Parent commits 4087980
  • Branches master

Comments (0)

Files changed (2)

File diario/__init__.py

View file
  • Ignore whitespace
 Blog application for Django projects.
 """
 
-from diario.utils import get_svn_revision
-
-
 VERSION = (0, 2, 'pre')
 
 def get_version():
     Returns the version as a human-format string.
     """
     v = '.'.join([str(i) for i in VERSION[:-1]])
-    return '%s-%s-%s' % (v, VERSION[-1], get_svn_revision())
+    return '%s-%s' % (v, VERSION[-1])
 
 __author__ = 'See the file AUTHORS.'
-__date__ = '$Date$'[7:-2]
 __license__ = 'GNU Lesser General Public License (GPL), Version 3'
 __url__ = 'http://django-diario.googlecode.com'
 __version__ = get_version()

File diario/utils.py

View file
  • Ignore whitespace
         return textile(value)
     else:
         return value            # raw
-
-def get_svn_revision():
-    """
-    Returns the SVN revision in the form SVN-XXX,
-    where XXX is the revision number.
-
-    Returns SVN-unknown if anything goes wrong, such as an unexpected
-    format of internal SVN files.
-    """
-    try:
-        from django.utils import version
-        rev = version.get_svn_revision(diario.__path__[0])
-    except ImportError:
-        rev = u'SVN-unknown'
-    return rev