~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/blackbox.py

  • Committer: Adeodato Simó
  • Date: 2006-07-12 18:17:03 UTC
  • mto: This revision was merged to the branch mainline in revision 416.
  • Revision ID: dato@net.com.org.es-20060712181703-af9e1c81c08d3af3
Make clean-tree --detritus or --ignored not delete also unknown files,
and add --unknown, noting it's the default option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        self.runbzr('clean-tree')
18
18
        assert os.path.lexists('name~')
19
19
        assert not os.path.lexists('name')
 
20
        self.touch('name')
20
21
        self.runbzr('clean-tree --detritus')
 
22
        assert os.path.lexists('name')
21
23
        assert not os.path.lexists('name~')
22
24
        assert os.path.lexists('name.pyc')
23
25
        self.runbzr('clean-tree --ignored')
 
26
        assert os.path.lexists('name')
 
27
        assert not os.path.lexists('name.pyc')
 
28
        self.runbzr('clean-tree --unknown')
 
29
        assert not os.path.lexists('name')
 
30
        self.touch('name')
 
31
        self.touch('name~')
 
32
        self.touch('name.pyc')
 
33
        self.runbzr('clean-tree --unknown --ignored')
 
34
        assert not os.path.lexists('name')
 
35
        assert not os.path.lexists('name~')
24
36
        assert not os.path.lexists('name.pyc')
25
37
 
26
38
    def test_shelve(self):