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


Michał Górny  committed 960a08c

[mercurial] Drop EHG_REVISION check.

The EHG_REVISION is used to denote branches too.

  • Participants
  • Parent commits 19238e4
  • Branches master

Comments (0)

Files changed (1)

File SmartLiveRebuild/vcs/mercurial.py

View file
  • Ignore whitespace
 import os.path, subprocess, sys
-from SmartLiveRebuild.vcs import VCSSupport, NonLiveEbuild
+from SmartLiveRebuild.vcs import VCSSupport
 class HgSupport(VCSSupport):
-	optenv = ['EHG_REVISION', 'HG_REV_ID']
+	optenv = ['HG_REV_ID']
 	trustopt = ['--config', 'trusted.users=portage']
-	def __init__(self, *args):
-		VCSSupport.__init__(self, *args)
-		if self.env['EHG_REVISION'] and self.env['EHG_REVISION'] != 'tip':
-			raise NonLiveEbuild('EHG_REVISION set, package is not really a live one')
 	def getpath(self):
 		dd = self._settings['PORTAGE_ACTUAL_DISTDIR'] or self._settings['DISTDIR']
 		bn = os.path.basename(self.env['EHG_REPO_URI']) or os.path.basename(os.path.dirname(self.env['EHG_REPO_URI']))