~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/blackbox.py

  • Committer: Aaron Bentley
  • Date: 2009-03-11 01:19:53 UTC
  • Revision ID: aaron@aaronbentley.com-20090311011953-2xgksl6krrs1yb4d
bzr patch handles URLs with trailing slashes

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        self.touch('name~')
22
22
        assert os.path.lexists('name~')
23
23
        self.touch('name.pyc')
24
 
        self.run_bzr('clean-tree')
 
24
        self.run_bzr('clean-tree --force')
25
25
        assert os.path.lexists('name~')
26
26
        assert not os.path.lexists('name')
27
27
        self.touch('name')
28
 
        self.run_bzr('clean-tree --detritus')
 
28
        self.run_bzr('clean-tree --detritus --force')
29
29
        assert os.path.lexists('name')
30
30
        assert not os.path.lexists('name~')
31
31
        assert os.path.lexists('name.pyc')
32
 
        self.run_bzr('clean-tree --ignored')
 
32
        self.run_bzr('clean-tree --ignored --force')
33
33
        assert os.path.lexists('name')
34
34
        assert not os.path.lexists('name.pyc')
35
 
        self.run_bzr('clean-tree --unknown')
 
35
        self.run_bzr('clean-tree --unknown --force')
36
36
        assert not os.path.lexists('name')
37
37
        self.touch('name')
38
38
        self.touch('name~')
39
39
        self.touch('name.pyc')
40
 
        self.run_bzr('clean-tree --unknown --ignored')
 
40
        self.run_bzr('clean-tree --unknown --ignored --force')
41
41
        assert not os.path.lexists('name')
42
42
        assert not os.path.lexists('name~')
43
43
        assert not os.path.lexists('name.pyc')
45
45
    def test_shelve(self):
46
46
        self.run_bzr('init')
47
47
        self.run_bzr('commit -m uc --unchanged')
48
 
        self.run_bzr('shelve -r 1 -m foo --all', retcode=3)
 
48
        self.run_bzr('shelve1 -r 1 -m foo --all', retcode=3)
49
49
        file('foo', 'wb').write('foo')
50
50
        self.run_bzr('add foo')
51
51
        self.run_bzr('commit -m foo')
52
 
        self.run_bzr('shelve -r 1 -m foo --all', retcode=0)
 
52
        self.run_bzr('shelve1 -r 1 -m foo --all', retcode=0)
53
53
 
54
54
    def test_fetch_ghosts(self):
55
55
        self.run_bzr('init')