~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/shelf.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-24 18:28:46 UTC
  • mfrom: (4595.9.6 shelve-skips-root)
  • Revision ID: pqm@pqm.ubuntu.com-20090824182846-ac4l3skw47g0tzx0
(abentley) Shelve will not remove tree root.

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)