~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Patch Queue Manager
  • Date: 2011-12-30 15:51:59 UTC
  • mfrom: (6213.1.63 update-feature-flags)
  • Revision ID: pqm@pqm.ubuntu.com-20111230155159-qrgafyvytuitiq8u
(jelmer) Add {Repository, Branch, WorkingTree,
 BzrDir}.update_feature_flags methods. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2721
2721
        self._transport.put_bytes('last-revision', out_string,
2722
2722
            mode=self.bzrdir._get_file_mode())
2723
2723
 
 
2724
    @needs_write_lock
 
2725
    def update_feature_flags(self, updated_flags):
 
2726
        """Update the feature flags for this branch.
 
2727
 
 
2728
        :param updated_flags: Dictionary mapping feature names to necessities
 
2729
            A necessity can be None to indicate the feature should be removed
 
2730
        """
 
2731
        self._format._update_feature_flags(updated_flags)
 
2732
        self.control_transport.put_bytes('format', self._format.as_string())
 
2733
 
2724
2734
 
2725
2735
class FullHistoryBzrBranch(BzrBranch):
2726
2736
    """Bzr branch which contains the full revision history."""