/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 fetch.py

Avoid using verifiers for natively imported revisions, save a lot of time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
385
385
              inv_delta, rev.revision_id, rev.parent_ids, base_inv)
386
386
    # Check verifiers
387
387
    testament = StrictTestament3(rev, inv)
388
 
    calculated_verifiers = { "testament3-sha1": testament.as_sha1() }
389
388
    if roundtrip_revid is not None:
 
389
        calculated_verifiers = { "testament3-sha1": testament.as_sha1() }
390
390
        original_revid = rev.revision_id
391
391
        rev.revision_id = roundtrip_revid
392
392
        if calculated_verifiers != verifiers:
394
394
                         calculated_verifiers["testament3-sha1"],
395
395
                         rev.revision_id, verifiers["testament3-sha1"])
396
396
            rev.revision_id = original_revid
 
397
    else:
 
398
        calculated_verifiers = {}
397
399
    store_updater.add_object(o, calculated_verifiers, None)
398
400
    store_updater.finish()
399
401
    ret_tree = RevisionTree(repo, inv, rev.revision_id)