~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Ian Clatworthy
  • Date: 2007-09-20 01:18:47 UTC
  • mfrom: (2825.4.1 knit-index-propogation)
  • mto: This revision was merged to the branch mainline in revision 2836.
  • Revision ID: ian.clatworthy@internode.on.net-20070920011847-mxya10w42px03fw2
No longer propagate index differences automatically (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
        """
210
210
        raise NotImplementedError(self.create_empty)
211
211
 
212
 
    def fix_parents(self, version_id, new_parents):
213
 
        """Fix the parents list for version.
214
 
        
215
 
        This is done by appending a new version to the index
216
 
        with identical data except for the parents list.
217
 
        the parents list must be a superset of the current
218
 
        list.
219
 
        """
220
 
        version_id = osutils.safe_revision_id(version_id)
221
 
        new_parents = [osutils.safe_revision_id(p) for p in new_parents]
222
 
        self._check_write_ok()
223
 
        return self._fix_parents(version_id, new_parents)
224
 
 
225
 
    def _fix_parents(self, version_id, new_parents):
226
 
        """Helper for fix_parents."""
227
 
        raise NotImplementedError(self.fix_parents)
228
 
 
229
212
    def get_format_signature(self):
230
213
        """Get a text description of the data encoding in this file.
231
214