~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_inv.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-14 12:08:53 UTC
  • mfrom: (5718.3.1 more-per-vf)
  • Revision ID: pqm@pqm.ubuntu.com-20110314120853-ot5tnefih540reoa
(jelmer) Skip more tests for repositories that don't implement the full
 versionedfiles API. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    # just creating trees.
57
57
    formats = set()
58
58
    for _, format in repository.format_registry.iteritems():
59
 
        scenarios.append((str(format.__name__), {
60
 
            'apply_delta':apply_inventory_Repository_add_inventory_by_delta,
61
 
            'format':format}))
 
59
        if format.supports_full_versioned_files:
 
60
            scenarios.append((str(format.__name__), {
 
61
                'apply_delta':apply_inventory_Repository_add_inventory_by_delta,
 
62
                'format':format}))
62
63
    for format in workingtree.format_registry._get_all():
 
64
        repo_fmt = format._matchingbzrdir.repository_format
 
65
        if not repo_fmt.supports_full_versioned_files:
 
66
            continue
63
67
        scenarios.append(
64
68
            (str(format.__class__.__name__) + ".update_basis_by_delta", {
65
69
            'apply_delta':apply_inventory_WT_basis,
79
83
            lines = []
80
84
        repo.texts.add_lines((ie.file_id, ie.revision), [], lines)
81
85
 
82
 
    
 
86
 
83
87
def apply_inventory_Inventory(self, basis, delta):
84
88
    """Apply delta to basis and return the result.
85
89