changeset 1477:a4f77acf7051

maps: do not open database when initializing sqlite revmap Since every db operation goes through _transaction, which will open the database on demand, it is unnecessary to open the database during __init__.
author Jun Wu <quark@fb.com>
date Thu, 23 Jun 2016 18:57:53 +0100
parents 581f72f9478b
children 797c7b58a735
files hgsubversion/maps.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/maps.py
+++ b/hgsubversion/maps.py
@@ -566,7 +566,6 @@ class SqliteRevMap(collections.MutableMa
 
         self._db = None
         self._hashes = None
-        self._opendb()
         self.firstpulled = 0
         self._updatefirstlastpulled()
         # __iter__ is expensive and thus disabled by default