# HG changeset patch
# User Jun Wu <quark@fb.com>
# Date 1466704673 -3600
# Node ID a4f77acf7051f70577eb968e8fe186bd59fb2bc9
# Parent  581f72f9478b852808abe2978b7500dc750f0e87
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__.

diff --git a/hgsubversion/maps.py b/hgsubversion/maps.py
--- 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