~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Vincent Ladeuil
  • Date: 2007-07-15 11:24:18 UTC
  • mfrom: (2617 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070715112418-9nn4n6esxv60ny4b
merge bzr.dev@1617

Show diffs side-by-side

added added

removed removed

Lines of Context:
827
827
        
828
828
        This is topologically sorted.
829
829
        """
830
 
        if revision_id is None:
 
830
        if _mod_revision.is_null(revision_id):
831
831
            return [None]
832
832
        revision_id = osutils.safe_revision_id(revision_id)
833
833
        if not self.has_revision(revision_id):
836
836
        candidates = w.get_ancestry(revision_id, topo_sorted)
837
837
        return [None] + candidates # self._eliminate_revisions_not_present(candidates)
838
838
 
 
839
    def pack(self):
 
840
        """Compress the data within the repository.
 
841
 
 
842
        This operation only makes sense for some repository types. For other
 
843
        types it should be a no-op that just returns.
 
844
 
 
845
        This stub method does not require a lock, but subclasses should use
 
846
        @needs_write_lock as this is a long running call its reasonable to 
 
847
        implicitly lock for the user.
 
848
        """
 
849
 
839
850
    @needs_read_lock
840
851
    def print_file(self, file, revision_id):
841
852
        """Print `file` to stdout.