Commits

Michał Górny  committed 1a0451c

[bzr] Support getremoterev().

  • Participants
  • Parent commits c91af01

Comments (0)

Files changed (1)

File SmartLiveRebuild/vcs/bzr.py

 		else:
 			return oldrev == newrev
 
+	def getremoterev(self):
+		if self.api == 2:
+			rev = self.call(self.env['EBZR_REVNO_CMD'].split() + [self.env['EBZR_REPO_URI']])
+			return int(rev) if rev else None
+		else:
+			return None
+
 	def getupdatecmd(self):
 		return '%s %s' % (self.env['EBZR_UPDATE_CMD'], self.env['EBZR_OPTIONS'])