Commits

Anonymous committed 1c24b8a

Enabled custom destination location

Comments (0)

Files changed (1)

mercurialrecipe/__init__.py

 class VirtualRepo(repo.repository):
 	
 	def __init__(self, path):
-		self.path = path
+		self.path = "file:/%s" % path
 	
 	def url(self):
 		return self.path
 	
 	def __init__(self, buildout, name, options):
 		self.options = options
-		self.options.update({
-			'location': os.path.join(buildout.get('buildout').get('parts-directory'), name),
-		})
+		self.options.setdefault('location', os.path.join(buildout.get('buildout').get('parts-directory'), name))
 		self.source = get_repository(self.options.get('repository'))
 		self.destination = get_repository(self.options.get('location'))
 		self.newest = options.get('newest', buildout.get('buildout').get('newest', 'true')).lower() != 'false'