Commits

Michał Górny  committed 1a6d87b

[subversion] Support checking the remote rev.

  • Participants
  • Parent commits 8506c72

Comments (0)

Files changed (1)

File SmartLiveRebuild/vcs/subversion.py

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