/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Aaron Bentley
  • Date: 2007-07-17 13:27:14 UTC
  • mfrom: (2624 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2631.
  • Revision ID: abentley@panoramicfeedback.com-20070717132714-tmzx9khmg9501k51
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
840
840
        
841
841
        This is topologically sorted.
842
842
        """
843
 
        if revision_id is None or revision_id == _mod_revision.NULL_REVISION:
 
843
        if _mod_revision.is_null(revision_id):
844
844
            return [None]
845
845
        revision_id = osutils.safe_revision_id(revision_id)
846
846
        if not self.has_revision(revision_id):
849
849
        candidates = w.get_ancestry(revision_id, topo_sorted)
850
850
        return [None] + candidates # self._eliminate_revisions_not_present(candidates)
851
851
 
 
852
    def pack(self):
 
853
        """Compress the data within the repository.
 
854
 
 
855
        This operation only makes sense for some repository types. For other
 
856
        types it should be a no-op that just returns.
 
857
 
 
858
        This stub method does not require a lock, but subclasses should use
 
859
        @needs_write_lock as this is a long running call its reasonable to 
 
860
        implicitly lock for the user.
 
861
        """
 
862
 
852
863
    @needs_read_lock
853
864
    def print_file(self, file, revision_id):
854
865
        """Print `file` to stdout.