~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

(jelmer) More fixes for the interface tests when run against foreign tests.
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2627
2627
    def make_branch(self, relpath, format=None):
2628
2628
        """Create a branch on the transport at relpath."""
2629
2629
        repo = self.make_repository(relpath, format=format)
2630
 
        return repo.bzrdir.create_branch()
 
2630
        return repo.bzrdir.create_branch(append_revisions_only=False)
 
2631
 
 
2632
    def resolve_format(self, format):
 
2633
        """Resolve an object to a ControlDir format object.
 
2634
 
 
2635
        The initial format object can either already be
 
2636
        a ControlDirFormat, None (for the default format),
 
2637
        or a string with the name of the control dir format.
 
2638
 
 
2639
        :param format: Object to resolve
 
2640
        :return A ControlDirFormat instance
 
2641
        """
 
2642
        if format is None:
 
2643
            format = 'default'
 
2644
        if isinstance(format, basestring):
 
2645
            format = bzrdir.format_registry.make_bzrdir(format)
 
2646
        return format
2631
2647
 
2632
2648
    def resolve_format(self, format):
2633
2649
        """Resolve an object to a ControlDir format object.