~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_read_bundle.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-14 16:16:53 UTC
  • mto: (1946.2.6 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1919.
  • Revision ID: john@arbash-meinel.com-20060814161653-54cdcdadcd4e9003
Remove bogus entry from BRANCH.TODO

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006 by Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
57
57
 
58
58
        out = cStringIO.StringIO()
59
59
        rev_ids = write_bundle(wt.branch.repository,
60
 
                               wt.get_parent_ids()[0], None, out)
 
60
                               wt.last_revision(), None, out)
61
61
        out.seek(0)
62
62
        if self._transport.is_readonly():
63
63
            f = open('test_bundle', 'wb')
64
64
            f.write(out.getvalue())
65
65
            f.close()
66
66
        else:
67
 
            self._transport.put_file('test_bundle', out)
 
67
            self._transport.put('test_bundle', out)
68
68
            self.log('Put to: %s', self.get_url('test_bundle'))
69
69
        return wt
70
70