localrepo: kill off sopener (API)
authorSiddharth Agarwal <sid0@fb.com>
Thu, 25 Jun 2015 22:17:52 -0700
changeset 25667 a69bb29b9638
parent 25666 1c7e62360068
child 25668 1c2df7c91cf2
localrepo: kill off sopener (API) sopener is deprecated since 7034365089bf (Mercurial 2.3). It's annoying for extension authors to have to deal with both. Let's just kill it off.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Thu Jun 25 22:16:36 2015 -0700
+++ b/mercurial/localrepo.py	Thu Jun 25 22:17:52 2015 -0700
@@ -293,7 +293,6 @@
                 self.requirements, self.sharedpath, scmutil.vfs)
         self.spath = self.store.path
         self.svfs = self.store.vfs
-        self.sopener = self.svfs
         self.sjoin = self.store.join
         self.vfs.createmode = self.store.createmode
         self._applyopenerreqs()
@@ -983,7 +982,7 @@
             reporef().hook('pretxnclose', throw=True, pending=pending,
                            txnname=desc, **tr.hookargs)
 
-        tr = transaction.transaction(rp, self.sopener, vfsmap,
+        tr = transaction.transaction(rp, self.svfs, vfsmap,
                                      "journal",
                                      "undo",
                                      aftertrans(renames),