~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/branch.py

  • Committer: Vincent Ladeuil
  • Date: 2009-04-03 16:05:32 UTC
  • mfrom: (4226.2.5 RemoteBranchConfig)
  • mto: This revision was merged to the branch mainline in revision 4251.
  • Revision ID: v.ladeuil+lp@free.fr-20090403160532-55znb9353wezpqgk
Fix handling of fallback repositories some more

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
            return FailedSmartServerResponse(('TipChangeRejected', msg))
149
149
 
150
150
 
 
151
class SmartServerBranchRequestSetConfigOption(SmartServerLockedBranchRequest):
 
152
    """Set an option in the branch configuration."""
 
153
 
 
154
    def do_with_locked_branch(self, branch, value, name, section):
 
155
        if not section:
 
156
            section = None
 
157
        branch._get_config().set_option(value.decode('utf8'), name, section)
 
158
        return SuccessfulSmartServerResponse(())
 
159
 
 
160
 
151
161
class SmartServerBranchRequestSetLastRevision(SmartServerSetTipRequest):
152
162
 
153
163
    def do_tip_change_with_locked_branch(self, branch, new_last_revision_id):