Rev 435: Unconditionally depend on sqlite. in http://bazaar.launchpad.net/~jameinel/loggerhead/history_db
John Arbash Meinel
john at arbash-meinel.com
Fri May 21 15:07:20 BST 2010
At http://bazaar.launchpad.net/~jameinel/loggerhead/history_db
------------------------------------------------------------
revno: 435
revision-id: john at arbash-meinel.com-20100521140706-32oex3ll8m3my7rg
parent: john at arbash-meinel.com-20100515074953-rubjw8cofjgu1o1d
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: history_db
timestamp: Fri 2010-05-21 09:07:06 -0500
message:
Unconditionally depend on sqlite.
-------------- next part --------------
=== modified file 'loggerhead/apps/branch.py'
--- a/loggerhead/apps/branch.py 2010-05-14 07:53:31 +0000
+++ b/loggerhead/apps/branch.py 2010-05-21 14:07:06 +0000
@@ -64,13 +64,8 @@
if cache_path is not None:
# Only import the cache if we're going to use it.
# This makes sqlite optional
- try:
- from loggerhead.changecache import FileChangeCache
- except ImportError:
- self.log.debug("Couldn't load python-sqlite,"
- " continuing without using a cache")
- else:
- file_cache = FileChangeCache(cache_path)
+ from loggerhead.changecache import FileChangeCache
+ file_cache = FileChangeCache(cache_path)
return History(
self.branch, file_cache=file_cache, cache_key=self.friendly_name,
cache_path=cache_path,
More information about the bazaar-commits
mailing list