~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches.py

  • Committer: Robert Collins
  • Date: 2008-06-25 10:24:54 UTC
  • mto: (128.10.24 loggerhead.search)
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: robertc@robertcollins.net-20080625102454-62atf1sil1qj0noa
Make bzr-search be an optional dependency and avoid errors when there is no search index.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
 
import logging
3
2
import sys
4
3
 
5
4
from paste import httpserver
8
7
 
9
8
from loggerhead.apps.filesystem import BranchesFromFileSystemRoot
10
9
 
11
 
 
12
 
logging.basicConfig()
13
 
logging.getLogger().setLevel(logging.DEBUG)
14
 
 
15
10
if len(sys.argv) > 1:
16
11
    path = sys.argv[1]
17
12
else: