~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Robert Collins
  • Date: 2005-09-06 15:19:44 UTC
  • mto: (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: robertc@robertcollins.net-20050906151944-04320f095a2abc31
minor refactors to store, create an ImmutableMemoryStore for testing or other such operations

Show diffs side-by-side

added added

removed removed

Lines of Context:
581
581
        finally:
582
582
            f.close()
583
583
 
584
 
 
585
584
    def get_revision_xml(self, revision_id):
586
585
        """Return XML file object for revision object."""
587
586
        if not revision_id or not isinstance(revision_id, basestring):
596
595
        finally:
597
596
            self.unlock()
598
597
 
599
 
 
600
598
    def get_revision(self, revision_id):
601
599
        """Return the Revision object for a named revision"""
602
600
        xml_file = self.get_revision_xml(revision_id)
611
609
        assert r.revision_id == revision_id
612
610
        return r
613
611
 
614
 
 
615
612
    def get_revision_delta(self, revno):
616
613
        """Return the delta for one revision.
617
614