changeset 25667:a69bb29b9638

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.
author Siddharth Agarwal <sid0@fb.com>
date Thu, 25 Jun 2015 22:17:52 -0700
parents 1c7e62360068
children 1c2df7c91cf2
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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),