Show More
@@ -72,7 +72,7 b' class localrepository(repo.repository):' | |||||
72 | if self.ui.configbool('format', 'dotencode', True): |
|
72 | if self.ui.configbool('format', 'dotencode', True): | |
73 | requirements.append('dotencode') |
|
73 | requirements.append('dotencode') | |
74 | # create an invalid changelog |
|
74 | # create an invalid changelog | |
75 |
self. |
|
75 | self.vfs.append( | |
76 | "00changelog.i", |
|
76 | "00changelog.i", | |
77 | '\0\0\0\2' # represents revlogv2 |
|
77 | '\0\0\0\2' # represents revlogv2 | |
78 | ' dummy changelog to prevent using the old repo layout' |
|
78 | ' dummy changelog to prevent using the old repo layout' | |
@@ -86,7 +86,7 b' class localrepository(repo.repository):' | |||||
86 | raise error.RepoError(_("repository %s already exists") % path) |
|
86 | raise error.RepoError(_("repository %s already exists") % path) | |
87 | else: |
|
87 | else: | |
88 | try: |
|
88 | try: | |
89 |
requirements = scmutil.readrequires(self. |
|
89 | requirements = scmutil.readrequires(self.vfs, self.supported) | |
90 | except IOError, inst: |
|
90 | except IOError, inst: | |
91 | if inst.errno != errno.ENOENT: |
|
91 | if inst.errno != errno.ENOENT: | |
92 | raise |
|
92 | raise |
General Comments 0
You need to be logged in to leave comments.
Login now