~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

 * Two new commands 'bzr checkout' and 'bzr update' allow for CVS/SVN-alike
   behaviour. They use the existing serverless-mode and store no data
   locally. As such they are not suitable for use except in high bandwidth
   low latency environments like LAN's or local disk. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        self.run_bzr('mkdir', 'foo', retcode=3)
42
42
 
43
43
        from bzrlib.diff import compare_trees
44
 
        wt = WorkingTree('.')
 
44
        wt = WorkingTree.open('.')
45
45
        
46
46
        delta = compare_trees(wt.basis_tree(), wt)
47
47
 
65
65
        os.chdir('..')
66
66
 
67
67
        from bzrlib.diff import compare_trees
68
 
        wt = WorkingTree('.')
 
68
        wt = WorkingTree.open('.')
69
69
        
70
70
        delta = compare_trees(wt.basis_tree(), wt)
71
71
 
94
94
        self.failUnless(os.path.isdir('a/b/dir'))
95
95
 
96
96
        from bzrlib.diff import compare_trees
97
 
        wt = WorkingTree('.')
98
 
        wt_a = WorkingTree('a')
99
 
        wt_b = WorkingTree('a/b')
 
97
        wt = WorkingTree.open('.')
 
98
        wt_a = WorkingTree.open('a')
 
99
        wt_b = WorkingTree.open('a/b')
100
100
        
101
101
        delta = compare_trees(wt.basis_tree(), wt)
102
102
        self.assertEquals(len(delta.added), 1)