~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Robert Collins
  • Date: 2007-07-12 12:07:13 UTC
  • mto: This revision was merged to the branch mainline in revision 2610.
  • Revision ID: robertc@robertcollins.net-20070712120713-c2vfm2n61l63wt6s
(robertc) Introduce a pack command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.