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

  • Committer: Jelmer Vernooij
  • Date: 2008-12-25 01:28:00 UTC
  • mto: (0.200.144 dulwich)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20081225012800-96iswmhsbn3wlyz6
Update copyright years.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    def peek(self):
54
54
        pass
55
55
 
 
56
    def validate_token(self, token):
 
57
        pass
 
58
 
56
59
 
57
60
class GitLockableFiles(lockable_files.LockableFiles):
58
61
    """Git specific lockable files abstraction."""
59
62
 
60
 
    def __init__(self, lock):
 
63
    def __init__(self, transport, lock):
61
64
        self._lock = lock
62
65
        self._transaction = None
63
66
        self._lock_mode = None
64
67
        self._lock_count = 0
 
68
        self._transport = transport
65
69
 
66
70
 
67
71
class GitDir(bzrdir.BzrDir):
148
152
            gitrepo = git.repo.Repo(transport.local_abspath("."))
149
153
        except errors.bzr_errors.NotLocalUrl:
150
154
            raise errors.bzr_errors.NotBranchError(path=transport.base)
151
 
        lockfiles = GitLockableFiles(GitLock())
 
155
        lockfiles = GitLockableFiles(transport, GitLock())
152
156
        return self._gitdir_class(transport, lockfiles, gitrepo, self)
153
157
 
154
158
    @classmethod
185
189
        git.repo.Repo.create(transport.local_abspath(".")) 
186
190
        return self.open(transport)
187
191
 
 
192
    def is_supported(self):
 
193
        return True
 
194
 
188
195
 
189
196
bzrdir.BzrDirFormat.register_control_format(GitBzrDirFormat)