29
29
# manually corrupt. If we change the way to get at that dirstate file,
30
30
# then we can update how this is done
31
31
self.assertIsNot(None, getattr(tree, 'current_dirstate', None))
34
33
dirstate = tree.current_dirstate()
35
34
dirstate_path = dirstate._filename
36
35
self.assertPathExists(dirstate_path)
39
36
# We have to have the tree unlocked at this point, so we can safely
40
37
# mutate the state file on all platforms.