~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-23 08:35:38 UTC
  • mfrom: (5176.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100423083538-2fokv22a7e596kmb
(vila) Warn if a config variable can't be interpreted as a boolean

Show diffs side-by-side

added added

removed removed

Lines of Context:
2870
2870
        return stacked_url
2871
2871
 
2872
2872
    def _get_append_revisions_only(self):
2873
 
        value = self.get_config().get_user_option('append_revisions_only')
2874
 
        return value == 'True'
 
2873
        return self.get_config(
 
2874
            ).get_user_option_as_bool('append_revisions_only')
2875
2875
 
2876
2876
    @needs_write_lock
2877
2877
    def generate_revision_history(self, revision_id, last_rev=None,