make sqlite status cache the default

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht
2016-04-09 21:06:38 +02:00
parent 6fb5700f94
commit 41e275e9a2
3 changed files with 22 additions and 28 deletions

View File

@ -38,7 +38,7 @@ class LocalStatusRepository(BaseRepository):
}
# Set class and root for the configured backend
self.setup_backend(self.account.getconf('status_backend', 'plain'))
self.setup_backend(self.account.getconf('status_backend', 'sqlite'))
if not os.path.exists(self.root):
os.mkdir(self.root, 0o700)
@ -71,8 +71,8 @@ class LocalStatusRepository(BaseRepository):
# if backend contains data, import it to folder.
if not folderbk.isnewfolder():
self.ui._msg('Migrating LocalStatus cache from %s to %s " \
"status folder for %s:%s'%
self.ui._msg("Migrating LocalStatus cache from %s to %s "
"status folder for %s:%s"%
(bk, self._backend, self.name, folder.name))
folderbk.cachemessagelist()