/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree_4.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-20 15:15:53 UTC
  • mfrom: (5905 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5952.
  • Revision ID: jelmer@samba.org-20110520151553-os9yowwk0klrslku
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        finally:
58
58
            state.unlock()
59
59
 
 
60
    def test_resets_ignores_on_last_unlock(self):
 
61
        # Only the last unlock call will actually reset the
 
62
        # ignores. (bug #785671)
 
63
        tree = self.make_workingtree()
 
64
        tree.lock_read()
 
65
        try:
 
66
            tree.lock_read()
 
67
            try:
 
68
                tree.is_ignored("foo")
 
69
            finally:
 
70
                tree.unlock()
 
71
            self.assertIsNot(None, tree._ignoreglobster)
 
72
        finally:
 
73
            tree.unlock()
 
74
        self.assertIs(None, tree._ignoreglobster)
 
75
 
60
76
    def test_uses_lockdir(self):
61
77
        """WorkingTreeFormat4 uses its own LockDir:
62
78