/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 bzrlib/workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-31 05:59:48 UTC
  • mfrom: (1551.8.20 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20060831055948-19f9ac43952da1c6
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()