comparison mercurial/localrepo.py @ 14905:207935cda6dc

localrepo: make requirements attribute of newly-created repos contain a set This is for internal consistency, as this attribute typically contains a set
author Andrew Pritchard <andrewp@fogcreek.com>
date Wed, 20 Jul 2011 18:23:06 -0400
parents ff2d907a5af8
children 4bf9493e7b07
comparison
equal deleted inserted replaced
14904:ff2d907a5af8 14905:207935cda6dc
61 '\0\0\0\2' # represents revlogv2 61 '\0\0\0\2' # represents revlogv2
62 ' dummy changelog to prevent using the old repo layout' 62 ' dummy changelog to prevent using the old repo layout'
63 ) 63 )
64 if self.ui.configbool('format', 'generaldelta', False): 64 if self.ui.configbool('format', 'generaldelta', False):
65 requirements.append("generaldelta") 65 requirements.append("generaldelta")
66 requirements = set(requirements)
66 else: 67 else:
67 raise error.RepoError(_("repository %s not found") % path) 68 raise error.RepoError(_("repository %s not found") % path)
68 elif create: 69 elif create:
69 raise error.RepoError(_("repository %s already exists") % path) 70 raise error.RepoError(_("repository %s already exists") % path)
70 else: 71 else: