~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Martin von Gagern
  • Date: 2011-06-01 12:53:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6009.
  • Revision ID: martin.vgagern@gmx.net-20110601125356-lwozv2vecea6hxfz
Change from no_decorate to classify as name for the argument.

The command line switch remains as --no-classify, to keep backwards
compatibility.  Users are free to include --no-classify in an alias, and
still use --classify to change back.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        """See BzrBranchFormat.get_format_string()."""
113
113
        return "Sample branch format."
114
114
 
115
 
    def initialize(self, a_bzrdir, name=None, repository=None,
116
 
                   append_revisions_only=None):
 
115
    def initialize(self, a_bzrdir, name=None, repository=None):
117
116
        """Format 4 branches cannot be created."""
118
117
        t = a_bzrdir.get_branch_transport(self, name=name)
119
118
        t.put_bytes('format', self.get_format_string())
138
137
        """See BzrBranchFormat.get_format_string()."""
139
138
        return SampleSupportedBranchFormatString
140
139
 
141
 
    def initialize(self, a_bzrdir, name=None, append_revisions_only=None):
 
140
    def initialize(self, a_bzrdir, name=None):
142
141
        t = a_bzrdir.get_branch_transport(self, name=name)
143
142
        t.put_bytes('format', self.get_format_string())
144
143
        return 'A branch'
653
652
        if value is not None:
654
653
            self.config.set_user_option('append_revisions_only', value)
655
654
        self.assertEqual(expected_value,
656
 
                         self.branch.get_append_revisions_only())
 
655
                         self.branch._get_append_revisions_only())
657
656
 
658
657
    def test_valid_append_revisions_only(self):
659
658
        self.assertEquals(None,
710
709
        r.new_revid = "same-revid"
711
710
        f = StringIO()
712
711
        r.report(f)
713
 
        self.assertEqual("No revisions or tags to pull.\n", f.getvalue())
 
712
        self.assertEqual("No revisions to pull.\n", f.getvalue())
714
713