##// END OF EJS Templates
localrepo: use "vfs" intead of "opener" while ensuring repository directory...
FUJIWARA Katsunori -
r17160:22b9b1d2 default
parent child Browse files
Show More
@@ -72,7 +72,7 b' class localrepository(repo.repository):'
72 72 if self.ui.configbool('format', 'dotencode', True):
73 73 requirements.append('dotencode')
74 74 # create an invalid changelog
75 self.opener.append(
75 self.vfs.append(
76 76 "00changelog.i",
77 77 '\0\0\0\2' # represents revlogv2
78 78 ' dummy changelog to prevent using the old repo layout'
@@ -86,7 +86,7 b' class localrepository(repo.repository):'
86 86 raise error.RepoError(_("repository %s already exists") % path)
87 87 else:
88 88 try:
89 requirements = scmutil.readrequires(self.opener, self.supported)
89 requirements = scmutil.readrequires(self.vfs, self.supported)
90 90 except IOError, inst:
91 91 if inst.errno != errno.ENOENT:
92 92 raise
General Comments 0
You need to be logged in to leave comments. Login now