[PATCH 5 of 6 V2] localrepo: use "vfs" intead of "opener" while ensuring repository directory
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Fri Jul 6 04:45:41 CDT 2012
# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1341567927 -32400
# Node ID a4967c4d8d397e318b554e86944e4d9968ab4e58
# Parent 7d07867c180e4189f27c60c56a05441d25aa4cc7
localrepo: use "vfs" intead of "opener" while ensuring repository directory
As a part of migration to vfs, this patch uses "self.vfs" instead of
"self.opener", while ensuring repository directory in the constructor
of "localrepository" class.
diff -r 7d07867c180e -r a4967c4d8d39 mercurial/localrepo.py
--- a/mercurial/localrepo.py Fri Jul 06 18:45:27 2012 +0900
+++ b/mercurial/localrepo.py Fri Jul 06 18:45:27 2012 +0900
@@ -67,7 +67,7 @@
if self.ui.configbool('format', 'dotencode', True):
requirements.append('dotencode')
# create an invalid changelog
- self.opener.append(
+ self.vfs.append(
"00changelog.i",
'\0\0\0\2' # represents revlogv2
' dummy changelog to prevent using the old repo layout'
@@ -81,7 +81,7 @@
raise error.RepoError(_("repository %s already exists") % path)
else:
try:
- requirements = scmutil.readrequires(self.opener, self.supported)
+ requirements = scmutil.readrequires(self.vfs, self.supported)
except IOError, inst:
if inst.errno != errno.ENOENT:
raise
More information about the Mercurial-devel
mailing list