obsolete: replace references to 'sopener' with 'svfs'
authorSiddharth Agarwal <sid0@fb.com>
Thu, 25 Jun 2015 22:19:49 -0700
changeset 25669 8d94861842e5
parent 25668 1c2df7c91cf2
child 25670 6368c51cfad6
obsolete: replace references to 'sopener' with 'svfs'
mercurial/obsolete.py
--- 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)