Merge lp:~abentley/bzr-history-db/docs into lp:bzr-history-db

Proposed by Aaron Bentley
Status: Merged
Approved by: John A Meinel
Approved revision: 133
Merged at revision: 133
Proposed branch: lp:~abentley/bzr-history-db/docs
Merge into: lp:bzr-history-db
Diff against target: 17 lines (+7/-1)
1 file modified
__init__.py (+7/-1)
To merge this branch: bzr merge lp:~abentley/bzr-history-db/docs
Reviewer Review Type Date Requested Status
John A Meinel Needs Fixing
Review via email: mp+38991@code.launchpad.net

Commit message

Improve docs.

Description of the change

This gives clueless folks like me a starting point.

To post a comment you must log in.
Revision history for this message
John A Meinel (jameinel) wrote :

This would be good if it was correct :).

You can use 'history-db-create' to initially populate a db, but if you want it used and kept up-to-date, you need to set:
 "history_db_path = /path/to/foo.db"

In your configuration settings.

It is a normal 'branch' config, so you can set it in locations.conf for specific branches, or in bazaar.conf to do all branches that you have, etc.

review: Needs Fixing
Revision history for this message
Aaron Bentley (abentley) wrote :

It seems like it would be most user-friendly to set that value on the branch config. Or perhaps to not accept a db location string and require the user to configure that first.

Revision history for this message
John A Meinel (jameinel) wrote :

If you set the value for the branch, I believe it gets used by default.

I currently just use the command line option for testing (timing how long things take, etc).

For *my* use case, I wouldn't want it set automatically, but I'm not necessarily the common case.

lp:~abentley/bzr-history-db/docs updated
133. By Aaron Bentley

Correct docs

Revision history for this message
Aaron Bentley (abentley) wrote :

Now with extra accuracy for your reading pleasure.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '__init__.py'
2--- __init__.py 2010-10-15 21:07:28 +0000
3+++ __init__.py 2010-10-21 18:24:59 +0000
4@@ -14,7 +14,13 @@
5 # along with this program; if not, write to the Free Software
6 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
7
8-"""Store history information in a database."""
9+"""Store history information in a database.
10+
11+Set "history_db_path" (in branch.conf, locations.conf, etc) to the location
12+where you would like to store your history database. Then use
13+history-db-create to import the branch's history into the database. The
14+database will be created if it does not already exist.
15+"""
16
17 import time
18

Subscribers

People subscribed via source and target branches