~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches

  • Committer: Matt Nordhoff
  • Date: 2009-06-03 23:21:52 UTC
  • mfrom: (359.2.2 allow-writes)
  • Revision ID: mnordhoff@mattnordhoff.com-20090603232152-9dqje90otjz7s82m
Support writing to the Bazaar server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
    load_plugins()
56
56
 
57
 
    transport = get_transport(path)
 
57
    if config.get_option('allow_writes'):
 
58
        transport = get_transport(path)
 
59
    else:
 
60
        transport = get_transport('readonly+' + path)
58
61
 
59
62
    if config.get_option('trunk_dir') and not config.get_option('user_dirs'):
60
63
        print "--trunk-dir is only valid with --user-dirs"