~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches

  • Committer: Matt Nordhoff
  • Date: 2009-06-03 03:30:38 UTC
  • mto: (359.3.3 hpss-writes)
  • mto: This revision was merged to the branch mainline in revision 362.
  • Revision ID: mnordhoff@mattnordhoff.com-20090603033038-v7rycl4x7ivrxhit
Add an --allow-writes option to serve-branches and "bzr serve"

Show diffs side-by-side

added added

removed removed

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