Rev 81: Fix a problem with the post-change hook. in http://bzr.arbash-meinel.com/plugins/history_db
John Arbash Meinel
john at arbash-meinel.com
Mon Apr 12 20:35:16 BST 2010
At http://bzr.arbash-meinel.com/plugins/history_db
------------------------------------------------------------
revno: 81
revision-id: john at arbash-meinel.com-20100412193508-gr6rco2tmgzs2ef5
parent: john at arbash-meinel.com-20100412193345-g4dc3lqr1jbbmqef
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: history_db
timestamp: Mon 2010-04-12 14:35:08 -0500
message:
Fix a problem with the post-change hook.
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py 2010-04-12 19:33:45 +0000
+++ b/__init__.py 2010-04-12 19:35:08 +0000
@@ -391,13 +391,15 @@
def _history_db_post_change_branch_tip_hook(params):
"""Run when the tip of a branch changes revision_id."""
+ import pprint
t0 = time.clock()
- history_db_path = _get_history_db_path(self)
+ history_db_path = _get_history_db_path(params.branch)
if history_db_path is None:
trace.mutter('Note updating history-db, "history_db_path"'
' not configured')
return
- importer = _mod_history_db.Importer(db, params.branch, incremental=True)
+ importer = _mod_history_db.Importer(history_db_path, params.branch,
+ incremental=True)
t1 = time.clock()
importer.do_import()
t2 = time.clock()
More information about the bazaar-commits
mailing list