~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/shelf.py

  • Committer: Aaron Bentley
  • Date: 2009-08-09 13:43:35 UTC
  • mto: This revision was merged to the branch mainline in revision 4641.
  • Revision ID: aaron@aaronbentley.com-20090809134335-sir7m009c1lil8te
Fix shelve in uncommitted trees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        """
74
74
        for (file_id, paths, changed, versioned, parents, names, kind,
75
75
             executable) in self.iter_changes:
 
76
            # don't shelve add of tree root.  Working tree should never
 
77
            # lack roots, and bzr misbehaves when they do.
 
78
            # FIXME ADHB (2009-08-09): should still shelve adds of tree roots
 
79
            # when a tree root was deleted / renamed.
 
80
            if kind[0] is None and names[1] == '':
 
81
                continue
76
82
            if kind[0] is None or versioned[0] == False:
77
83
                self.creation[file_id] = (kind[1], names[1], parents[1],
78
84
                                          versioned)