[PATCH 2 of 5] localrepo: kill off sopener

Siddharth Agarwal sid0 at fb.com
Fri Jun 26 00:24:09 CDT 2015


# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1435295872 25200
#      Thu Jun 25 22:17:52 2015 -0700
# Node ID 438c204ed884e6e349e5ea0a1bff6ed17f58797c
# Parent  66710aec23053660f0bd621940108745f05150b6
localrepo: kill off sopener

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -293,7 +293,6 @@ class localrepository(object):
                 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 @@ class localrepository(object):
             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),


More information about the Mercurial-devel mailing list