Commits

Michał Górny committed 24e5661

subversion: Cast the revision to an integer type.

Comments (0)

Files changed (1)

SmartLiveRebuild/vcs/subversion.py

 		return self.env['ESVN_REPO_URI'] or VCSSupport.__str__(self)
 
 	def getsavedrev(self):
-		return self.env['ESVN_WC_REVISION']
+		return int(self.env['ESVN_WC_REVISION'])
 
 	def getrev(self):
 		svninfo = self.call(['svn', '--config-dir', '%s/.subversion' % self.env['ESVN_STORE_DIR'], 'info'],
 				env = {'LC_ALL': 'C'})
 		m = self.revre.search(svninfo)
-		return m.group(1) if m is not None else None
+		return int(m.group(1)) if m is not None else None
 
 	@staticmethod
 	def revcmp(oldrev, newrev):