~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/versioned/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-05 20:08:52 UTC
  • mto: (1946.2.8 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1988.
  • Revision ID: john@arbash-meinel.com-20060905200852-067430c9209fea7f
Find more occurrances of put() and replace with put_file or put_bytes

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
    def _put(self, file_id, f):
114
114
        fn = self.filename(file_id)
115
115
        try:
116
 
            return self._transport.put(fn, f, mode=self._file_mode)
 
116
            return self._transport.put_file(fn, f, mode=self._file_mode)
117
117
        except errors.NoSuchFile:
118
118
            if not self._prefixed:
119
119
                raise
120
120
            self._transport.mkdir(os.path.dirname(fn), mode=self._dir_mode)
121
 
            return self._transport.put(fn, f, mode=self._file_mode)
 
121
            return self._transport.put_file(fn, f, mode=self._file_mode)
122
122
 
123
123
    def get_weave(self, file_id, transaction, _filename=None):
124
124
        """Return the VersionedFile for file_id.