--- a/mercurial/localrepo.py Fri Feb 05 18:23:01 2010 +0100
+++ b/mercurial/localrepo.py Fri Feb 05 19:10:26 2010 +0100
@@ -89,6 +89,7 @@
self.sopener = self.store.opener
self.sjoin = self.store.join
self.opener.createmode = self.store.createmode
+ self.sopener.options = {}
# These two define the set of tags for this repository. _tags
# maps tag name to node; _tagtypes maps tag name to 'global' or
@@ -112,7 +113,7 @@
p = os.environ['HG_PENDING']
if p.startswith(self.root):
c.readpending('00changelog.i.a')
- self.sopener.defversion = c.version
+ self.sopener.options['defversion'] = c.version
return c
@propertycache
--- a/mercurial/revlog.py Fri Feb 05 18:23:01 2010 +0100
+++ b/mercurial/revlog.py Fri Feb 05 19:10:26 2010 +0100
@@ -431,8 +431,8 @@
self.index = []
v = REVLOG_DEFAULT_VERSION
- if hasattr(opener, "defversion"):
- v = opener.defversion
+ if hasattr(opener, 'options') and 'defversion' in opener.options:
+ v = opener.options['defversion']
if v & REVLOGNG:
v |= REVLOGNGINLINEDATA