~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

Fix BzrDir.create_workingtree for NULL_REVISION

Show diffs side-by-side

added added

removed removed

Lines of Context:
1917
1917
            wt._write_inventory(inv)
1918
1918
            wt.set_root_id(inv.root.file_id)
1919
1919
            basis_tree = branch.repository.revision_tree(revision_id)
1920
 
            wt.set_parent_trees([(revision_id, basis_tree)])
 
1920
            if revision_id == bzrlib.revision.NULL_REVISION:
 
1921
                wt.set_parent_trees([])
 
1922
            else:
 
1923
                wt.set_parent_trees([(revision_id, basis_tree)])
1921
1924
            build_tree(basis_tree, wt)
1922
1925
        finally:
1923
1926
            wt.unlock()