1. Michał Górny
  2. smart-live-rebuild


Michał Górny  committed 24e5661

subversion: Cast the revision to an integer type.

  • Participants
  • Parent commits 561954f
  • Branches master

Comments (0)

Files changed (1)

File SmartLiveRebuild/vcs/subversion.py

View file
  • Ignore whitespace
 		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
 	def revcmp(oldrev, newrev):