~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.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:
39
39
                            sha_strings,
40
40
                            sha_string,
41
41
                            )
 
42
import bzrlib.revision
42
43
from bzrlib.store.revision.text import TextRevisionStore
43
44
from bzrlib.store.text import TextStore
44
45
from bzrlib.store.versioned import WeaveStore
686
687
        # done on this format anyway. So - acceptable wart.
687
688
        result = self.open_workingtree()
688
689
        if revision_id is not None:
689
 
            result.set_parent_ids([revision_id])
 
690
            if revision_id == bzrlib.revision.NULL_REVISION:
 
691
                result.set_parent_ids([])
 
692
            else:
 
693
                result.set_parent_ids([revision_id])
690
694
        return result
691
695
 
692
696
    def get_branch_transport(self, branch_format):