~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/weaverepo.py

  • Committer: Aaron Bentley
  • Date: 2008-04-10 04:22:38 UTC
  • mto: (3242.2.15 repository-policy)
  • mto: This revision was merged to the branch mainline in revision 3358.
  • Revision ID: aaron@aaronbentley.com-20080410042238-epgsig57rz3bxma8
Change ValueError to RepositoryUpgradeRequired

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
        :param new_value: True to restore the default, False to disable making
203
203
                          working trees.
204
204
        """
205
 
        if not new_value:
206
 
            raise ValueError('This format always enables working trees.')
 
205
        raise errors.RepositoryUpgradeRequired(self.bzrdir.root_transport.base)
207
206
 
208
207
    def make_working_trees(self):
209
208
        """Returns the policy for making working trees on new branches."""