~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

(spiv) Fix BzrDir.sprout to respect default stacking policies (#597942)
 (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1244
1244
        repository_policy = result.determine_repository_policy(
1245
1245
            force_new_repo, stacked_branch_url, require_stacking=stacked)
1246
1246
        result_repo, is_new_repo = repository_policy.acquire_repository()
1247
 
        if is_new_repo and revision_id is not None and not stacked:
 
1247
        is_stacked = stacked or (len(result_repo._fallback_repositories) != 0)
 
1248
        if is_new_repo and revision_id is not None and not is_stacked:
1248
1249
            fetch_spec = graph.PendingAncestryResult(
1249
1250
                [revision_id], source_repository)
1250
1251
        else: