~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

  • Committer: John Arbash Meinel
  • Date: 2007-04-17 20:10:04 UTC
  • mto: This revision was merged to the branch mainline in revision 2452.
  • Revision ID: john@arbash-meinel.com-20070417201004-1v7sim0tlt19l8o4
Make a Branch helper which can create a very basic MemoryTree with history.
This updates MutableTree to include 'set_parent_ids' which is helpful
when setting up simple tests.
It also creates a helper function in branch_implementations..TestCaseWithBranch
so that we can create a Branch which has a simple merge in it.
It also adds a test for revision_id_to_revno which previously did not have any
direct tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
        """
246
246
        raise NotImplementedError(self.mkdir)
247
247
 
 
248
    def set_parent_ids(self, revision_ids, allow_leftmost_as_ghost=False):
 
249
        """Set the parents ids of the working tree.
 
250
 
 
251
        :param revision_ids: A list of revision_ids.
 
252
        """
 
253
        raise NotImplementedError(self.set_parent_ids)
 
254
 
248
255
    def set_parent_trees(self, parents_list, allow_leftmost_as_ghost=False):
249
256
        """Set the parents of the working tree.
250
257