~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/memorytree.py

  • Committer: Aaron Bentley
  • Date: 2007-07-11 19:44:51 UTC
  • mto: This revision was merged to the branch mainline in revision 2606.
  • Revision ID: abentley@panoramicfeedback.com-20070711194451-3jqhye1nnd02a9uv
Restore original Branch.last_revision behavior, fix bits that care

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
    @staticmethod
68
68
    def create_on_branch(branch):
69
69
        """Create a MemoryTree for branch, using the last-revision of branch."""
70
 
        revision_id = branch.last_revision()
 
70
        revision_id = _mod_revision.ensure_null(branch.last_revision())
71
71
        if _mod_revision.is_null(revision_id):
72
72
            revision_id = None
73
73
        return MemoryTree(branch, revision_id)