~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_filtered_view_ops.py

  • Committer: John Arbash Meinel
  • Date: 2011-05-11 11:35:28 UTC
  • mto: This revision was merged to the branch mainline in revision 5851.
  • Revision ID: john@arbash-meinel.com-20110511113528-qepibuwxicjrbb2h
Break compatibility with python <2.6.

This includes auditing the code for places where we were doing
explicit 'sys.version' checks and removing them as appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
class TestViewFileOperations(tests.TestCaseWithTransport):
29
29
 
30
30
    def make_abc_tree_with_ab_view(self):
31
 
        # we need to use a specific format because the default format
32
 
        # doesn't support views yet
33
 
        format = bzrdir.format_registry.make_bzrdir('development6-rich-root')
34
 
        wt = self.make_branch_and_tree( '.', format=format)
 
31
        wt = self.make_branch_and_tree('.')
35
32
        self.build_tree(['a', 'b', 'c'])
36
33
        wt.views.set_view('my', ['a', 'b'])
37
34
        return wt
156
153
class TestViewTreeOperations(tests.TestCaseWithTransport):
157
154
 
158
155
    def make_abc_tree_and_clone_with_ab_view(self):
159
 
        # we need to use a specific format because the default format
160
 
        # doesn't support views yet
161
 
        format = bzrdir.format_registry.make_bzrdir('development6-rich-root')
162
156
        # Build the first tree
163
 
        wt1 = self.make_branch_and_tree('tree_1', format=format)
 
157
        wt1 = self.make_branch_and_tree('tree_1')
164
158
        self.build_tree(['tree_1/a', 'tree_1/b', 'tree_1/c'])
165
159
        wt1.add(['a', 'b', 'c'])
166
160
        wt1.commit("adding a b c")