changeset 25669:8d94861842e5

obsolete: replace references to 'sopener' with 'svfs'
author Siddharth Agarwal <sid0@fb.com>
date Thu, 25 Jun 2015 22:19:49 -0700
parents 1c2df7c91cf2
children 6368c51cfad6
files mercurial/obsolete.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/obsolete.py	Thu Jun 25 22:18:56 2015 -0700
+++ b/mercurial/obsolete.py	Thu Jun 25 22:19:49 2015 -0700
@@ -517,12 +517,12 @@
     # parents: (tuple of nodeid) or None, parents of precursors
     #          None is used when no data has been recorded
 
-    def __init__(self, sopener, defaultformat=_fm1version, readonly=False):
+    def __init__(self, svfs, defaultformat=_fm1version, readonly=False):
         # caches for various obsolescence related cache
         self.caches = {}
         self._all = []
-        self.sopener = sopener
-        data = sopener.tryread('obsstore')
+        self.svfs = svfs
+        data = svfs.tryread('obsstore')
         self._version = defaultformat
         self._readonly = readonly
         if data:
@@ -588,7 +588,7 @@
                 known.add(m)
                 new.append(m)
         if new:
-            f = self.sopener('obsstore', 'ab')
+            f = self.svfs('obsstore', 'ab')
             try:
                 offset = f.tell()
                 transaction.add('obsstore', offset)