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.

  • Participants
  • Parent commits d66d056
  • Branches master

Comments (0)

Files changed (1)

File SmartLiveRebuild/vcs/

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