~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Aaron Bentley
  • Date: 2007-06-20 02:39:38 UTC
  • mto: (2520.5.2 bzr.mpbundle)
  • mto: This revision was merged to the branch mainline in revision 2631.
  • Revision ID: aaron.bentley@utoronto.ca-20070620023938-dsrywb9k05tschj7
Hang a create_bundle method off repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    transactions,
42
42
    ui,
43
43
    )
 
44
from bzrlib.bundle import serializer
44
45
from bzrlib.revisiontree import RevisionTree
45
46
from bzrlib.store.versioned import VersionedFileStore
46
47
from bzrlib.store.text import TextStore
372
373
        except NotImplementedError:
373
374
            raise errors.IncompatibleRepositories(source, self)
374
375
 
 
376
    def create_bundle(self, target, base, fileobj, format=None):
 
377
        return serializer.write_bundle(self, target, base, fileobj, format)
 
378
 
375
379
    def get_commit_builder(self, branch, parents, config, timestamp=None, 
376
380
                           timezone=None, committer=None, revprops=None, 
377
381
                           revision_id=None):
834
838
        
835
839
        This is topologically sorted.
836
840
        """
837
 
        if revision_id is None:
 
841
        if revision_id is None or revision_id == NULL_REVISION:
838
842
            return [None]
839
843
        revision_id = osutils.safe_revision_id(revision_id)
840
844
        if not self.has_revision(revision_id):