Commits

Michał Górny committed a68fb23

[mercurial] Always pass revision to 'hg identify'.

If the hg-src clone does contain only '.hg' directory, mercurial reports
no revision with simple 'hg identify'. Passing '--rev' seems to fix it.
This should fix bug #358977.

Comments (0)

Files changed (1)

SmartLiveRebuild/vcs/mercurial.py

 		return self.env['HG_REV_ID']
 
 	def getrev(self):
-		return self.call(['hg', 'identify', '--id'] + self.trustopt)
+		return self.call(['hg', 'identify', '--id', '--rev', self.env['EHG_REVISION']]
+				+ self.trustopt)
 
 	def getremoterev(self):
 		return self.call(['hg', 'identify', '--id', '--rev', self.env['EHG_REVISION'],