/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 workingtree.py

Merge new bzr-foreign.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    workingtree,
28
28
    )
29
29
 
30
 
from dulwich.index import Index
31
 
 
32
30
class GitWorkingTree(workingtree.WorkingTree):
33
31
    """A Git working tree."""
34
32
 
52
50
 
53
51
        self._format = GitWorkingTreeFormat()
54
52
 
55
 
        self.index = Index(os.path.join(self.repository._git.controldir(), 
56
 
            "index"))
57
 
        self.views = self._make_views()
 
53
    def lock_read(self):
 
54
        pass
58
55
 
59
56
    def unlock(self):
60
 
        # non-implementation specific cleanup
61
 
        self._cleanup()
62
 
 
63
 
        # reverse order of locking.
64
 
        try:
65
 
            return self._control_files.unlock()
66
 
        finally:
67
 
            self.branch.unlock()
 
57
        pass
68
58
 
69
59
    def is_control_filename(self, path):
70
60
        return os.path.basename(path) == ".git"