~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/shelf.py

  • Committer: Vincent Ladeuil
  • Date: 2011-07-07 10:19:00 UTC
  • mfrom: (6011.2.1 trunk)
  • mto: (6012.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6013.
  • Revision ID: v.ladeuil+lp@free.fr-20110707101900-b0mxc2cnwu2dql97
Merging in trunk with root-id preserved

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
            # when a tree root was deleted / renamed.
83
83
            if kind[0] is None and names[1] == '':
84
84
                continue
 
85
            # Also don't shelve deletion of tree root.
 
86
            if kind[1] is None and names[0] == '':
 
87
                continue
85
88
            if kind[0] is None or versioned[0] == False:
86
89
                self.creation[file_id] = (kind[1], names[1], parents[1],
87
90
                                          versioned)