1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
LOGGERHEAD
==========
[ Version 1.2 for Bazaar 1.2 ]
Loggerhead is a web viewer for Bazaar branches. It can be used to
navigate a branch history, annotate files, perform searches... all the
usual things.
To get started, first you need to create a 'loggerhead.conf' file
specifying the branches you want to view. A 'loggerhead.conf.example'
file is included in the source which has comments explaining the
various options.
Loggerhead can then be started by running::
$ ./start-loggerhead.py
This will run loggerhead in the background. It listens on port 8080
by default, so go to http://localhost:8080/ in your browser to see the
list of bublished branches.
To stop Loggerhead, run::
$ ./stop-loggerhead.py
If you want to view Bazaar branches from your existing Apache
installation, you'll need to configure Apache to proxy certain
requests to Loggerhead. Adding lines like this to you Apache
configuration is one way to do this::
<Location "/branches/">
ProxyPass http://127.0.0.1:8080/
ProxyPassReverse http://127.0.0.1:8080/
</Location>
In the configuration file you can configure projects, and branches per
project. The idea is that you could be publishing several (possibly
unrelated) projects through the same loggerhead instance, and several
branches for the same project. See the "loggerhead.conf.example" file
included with the source.
Although Loggerhead is a TurboGears (http://www.turbogears.org)
project, don't bother with "dev.cfg" or any of the other TurboGears
config files. Loggerhead overrides those values with its own.
A debug and access log are stored in the logs/ folder, relative to
the location of the start-loggerhead.py script.
You may update the Bazaar branch at any time (for example, from a cron).
Loggerhead will notice and refresh, and Bazaar uses its own branch
locking to prevent corruption.
CACHES
------
To speed up operations with large branches, loggerhead can be configured
to create three caches per branch when it first launches:
- a revision data cache
- a cache of files changed in a revision
- a text searching cache
You can put the cache folder anywhere.
The revision data cache and text searching cache will be automatically
filled once loggerhead starts up. The caches for a branch with 15,000
revisions take about four minutes each on a fairly fast machine, but
mileage may vary. Once they are built, they update every six hours or
so but usually finish quickly (or instantly) after the initial creation.
SUPPORT
-------
Loggerhead is loosely based on bazaar-webserve, which was loosely
based on hgweb. Discussion should take place on the bazaar-dev
mailing list at bazaar@lists.canonical.com. You can join the list at
<https://lists.ubuntu.com/mailman/listinfo/bazaar>. You don't need to
subscribe to post, but your first post will be held briefly for manual
moderation.
|