/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: Max Bowsher
  • Date: 2011-01-25 23:37:28 UTC
  • mto: (0.200.1074 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: maxb@f2s.com-20110125233728-ge68iskw0z7vh7v0
Make tests tolerant to bzr <= 2.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
    def create_workingtree(self, revision_id=None, from_branch=None,
259
259
        accelerator_tree=None, hardlink=False):
260
260
        if self._git.bare:
261
 
            raise bzr_errors.BzrError("Can't create working tree in a bare repo")
 
261
            raise bzr_errors.UnsupportedOperation(self.create_workingtree, self)
262
262
        from dulwich.index import write_index
263
263
        from dulwich.pack import SHA1Writer
264
264
        f = open(self.transport.local_abspath("index"), 'w+')