/breezy-hg/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-hg/trunk

« back to all changes in this revision

Viewing changes to dir.py

  • Committer: Jelmer Vernooij
  • Date: 2018-09-29 08:12:07 UTC
  • Revision ID: jelmer@jelmer.uk-20180929081207-ol8c5exqqakpu1l3
Fix a bunch of tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
            repo_klass = HgRemoteRepository
169
169
        return repo_klass(self._hgrepo, self, self._lockfiles)
170
170
 
171
 
    def open_workingtree(self, shared=False, recommend_upgrade=False):
 
171
    def open_workingtree(self, shared=False, recommend_upgrade=False,
 
172
                         unsupported=False):
172
173
        """'open' a workingtree for this dir."""
173
174
        from breezy.plugins.hg.workingtree import HgWorkingTree
174
175
        return HgWorkingTree(self._hgrepo, self.open_branch(), self)
261
262
            self._lock_count += 1
262
263
        else:
263
264
            self._lock_mode = 'w'
264
 
            self._lock = self._hgrepo.wlock()
 
265
            self._lock = self._hgrepo.wlock(wait=False)
265
266
            self._transaction = transactions.PassThroughTransaction()
266
267
            self._lock_count = 1
267
268
 
279
280
            self._transaction = transactions.PassThroughTransaction()
280
281
            self._lock_count = 1
281
282
 
 
283
    def break_lock(self):
 
284
        raise NotImplementedError(self.break_lock)
 
285
 
282
286
    def is_locked(self):
283
287
        return (self._lock_count > 0)
284
288