/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

Fix branch cloning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""An adapter between a Git index and a Bazaar Working Tree"""
18
18
 
19
 
from dulwich.index import (
20
 
    Index,
21
 
    )
22
19
import os
23
20
 
24
21
from bzrlib import (
53
50
 
54
51
        self._format = GitWorkingTreeFormat()
55
52
 
56
 
        self.index = Index(os.path.join(self.repository._git.controldir(), 
57
 
            "index"))
58
 
        self.views = self._make_views()
 
53
    def lock_read(self):
 
54
        pass
59
55
 
60
56
    def unlock(self):
61
 
        # non-implementation specific cleanup
62
 
        self._cleanup()
63
 
 
64
 
        # reverse order of locking.
65
 
        try:
66
 
            return self._control_files.unlock()
67
 
        finally:
68
 
            self.branch.unlock()
 
57
        pass
69
58
 
70
59
    def is_control_filename(self, path):
71
60
        return os.path.basename(path) == ".git"