diff treepkg/subversion.py @ 541:8b49548aa8d4

provide stubs for short_revision number
author Bjoern Ricks <bricks@intevation.de>
date Tue, 11 Jan 2011 16:27:02 +0000
parents f7613aaa6a4e
children
line wrap: on
line diff
--- a/treepkg/subversion.py	Tue Jan 11 16:04:05 2011 +0000
+++ b/treepkg/subversion.py	Tue Jan 11 16:27:02 2011 +0000
@@ -268,6 +268,13 @@
         """Returns the last changed rev of the working copy"""
         return self.repository.last_changed_revision(self.localdir)
 
+    def get_revision(self):
+        return self.last_changed_revision()
+
+    def get_short_revision(self):
+        # TODO: revision should be cached to avoid several calls to svn
+        return self.get_revision()
+
 
 class ManualWorkingCopy(object):
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)