~abentley/bzr/cp-4470

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2009-03-16 11:57:58 UTC
  • mfrom: (3995.3.115 1.13-for-rf)
  • Revision ID: launchpad@pqm.canonical.com-20090316115758-hkrp6igwb4vyt94l
[rs=mwhudson] bzr 1.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
    def _make_new_versionedfile(self, file_id, transaction,
134
134
        known_missing=False, _filename=None):
135
135
        """Make a new versioned file.
136
 
        
 
136
 
137
137
        :param _filename: filename that would be returned from self.filename for
138
138
        file_id. This is used to reduce duplicate filename calculations when
139
139
        using 'get_weave_or_empty'. FOR INTERNAL USE ONLY.
162
162
 
163
163
    def get_weave_or_empty(self, file_id, transaction):
164
164
        """Return a weave, or an empty one if it doesn't exist."""
165
 
        # This is typically used from 'commit' and 'fetch/push/pull' where 
 
165
        # This is typically used from 'commit' and 'fetch/push/pull' where
166
166
        # we scan across many versioned files once. As such the small overhead
167
167
        # of calculating the filename before doing a cache lookup is more than
168
168
        # compensated for by not calculating the filename when making new
208
208
    def copy_multi(self, from_store, file_ids, pb=None, from_transaction=None,
209
209
                   to_transaction=None):
210
210
        """Copy all the versions for multiple file_ids from from_store.
211
 
        
 
211
 
212
212
        :param from_transaction: required current transaction in from_store.
213
213
        """
214
214
        from bzrlib.transactions import PassThroughTransaction