~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Matt Nordhoff
  • Date: 2009-04-30 10:39:05 UTC
  • mto: This revision was merged to the branch mainline in revision 406.
  • Revision ID: mnordhoff@mattnordhoff.com-20090430103905-10si14h2i325htrj
Strip trailing whitespace

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
"""Loggerhead web viewer for Bazaar branches.
28
28
 
29
 
This provides a new option "--http" to the "bzr serve" command, that 
 
29
This provides a new option "--http" to the "bzr serve" command, that
30
30
starts a web server to browse the contents of a branch.
31
31
"""
32
32
 
47
47
    # seems reasonable to have in-line here: bzrlib.commands and options are
48
48
    # normally loaded, and the rest of loggerhead won't be loaded until serve
49
49
    # --http is run.
50
 
        
 
50
 
51
51
    import bzrlib.builtins
52
52
    from bzrlib.commands import get_cmd_object, register_command
53
53
    from bzrlib.option import Option
71
71
                import os.path, sys
72
72
                sys.path.append(os.path.dirname(__file__))
73
73
 
74
 
                from loggerhead.apps.transport import BranchesFromTransportRoot
 
74
                from loggerhead.apps.filesystem import BranchesFromFileSystemRoot
75
75
                from paste.httpexceptions import HTTPExceptionHandler
76
76
                from paste.httpserver import serve
77
 
                a = HTTPExceptionHandler(BranchesFromTransportRoot('.'))
 
77
                a = HTTPExceptionHandler(BranchesFromFileSystemRoot('.'))
78
78
                port = kw.get('port', DEFAULT_PORT)
79
79
                # port might be an int already...
80
80
                if isinstance(port, basestring) and ':' in port: