~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_sftp.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-18 16:27:44 UTC
  • mto: (1946.2.6 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1947.
  • Revision ID: john@arbash-meinel.com-20060818162744-d6fafac99f044e76
Fix whitespace, and push sprout()ing over sftp

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        super(SFTPBenchmark, self).setUp()
38
38
        if not paramiko_loaded:
39
39
            raise TestSkipped('you must have paramiko to run this test')
40
 
        test_sftp_transport.set_test_transport_to_sftp(self) 
 
40
        test_sftp_transport.set_test_transport_to_sftp(self)
41
41
         
42
42
    def test_branch(self):
43
43
        os.mkdir("a")
66
66
        os.mkdir("a")
67
67
        tree, files = self.create_with_commits(100, 100, "a")
68
68
        rbzrdir = bzrdir.BzrDir.open(self.get_url('a'))
69
 
        b2 = rbzrdir.sprout("b") # branch
 
69
        b2 = tree.bzrdir.sprout("b") # branch
70
70
        wtree = b2.open_workingtree()
71
71
        # change a few files and commit
72
72
        self.commit_some_revisions(
73
 
            wtree, ["b/%i" for i in range(100)], 
 
73
            wtree, ["b/%i" for i in range(100)],
74
74
            num_commits=num_push_revisions,
75
75
            changes_per_commit=20)
76
76
        self.time(rbzrdir.open_branch().pull, wtree.branch)