~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

  • Committer: Robert Collins
  • Date: 2006-04-18 22:41:16 UTC
  • mto: (1711.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1671.
  • Revision ID: robertc@robertcollins.net-20060418224116-9b723440fa56e404
 * 'Metadir' is now the default disk format. This improves behaviour in
   SFTP using circumstances and allows binding and rebinding and easier
   use of repositories. (Robert Collins, Aaron Bentley).

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
    """Test some stuff when accessing a bzr Branch over sftp"""
194
194
 
195
195
    def test_lock_file(self):
196
 
        """Make sure that a Branch accessed over sftp tries to lock itself."""
197
 
        b = bzrdir.BzrDir.create_branch_and_repo(self.get_url())
 
196
        # old format branches use a special lock file on sftp.
 
197
        b = self.make_branch('', format=bzrdir.BzrDirFormat6())
 
198
        b = bzrlib.branch.Branch.open(self.get_url())
198
199
        self.failUnlessExists('.bzr/')
199
200
        self.failUnlessExists('.bzr/branch-format')
200
201
        self.failUnlessExists('.bzr/branch-lock')