/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/shelf.py

  • Committer: Martin Pool
  • Date: 2009-08-20 05:05:59 UTC
  • mfrom: (4630 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4632.
  • Revision ID: mbp@sourcefrog.net-20090820050559-021d8swx2ps1xfn7
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
            self.shelve_deletion(change[1])
105
105
        elif change[0] == 'add file':
106
106
            self.shelve_creation(change[1])
107
 
        elif change[0] == 'change kind':
 
107
        elif change[0] in ('change kind', 'modify text'):
108
108
            self.shelve_content_change(change[1])
109
109
        elif change[0] == 'modify target':
110
110
            self.shelve_modify_target(change[1])
111
111
        else:
112
112
            raise ValueError('Unknown change kind: "%s"' % change[0])
113
113
 
 
114
    def shelve_all(self):
 
115
        """Shelve all changes."""
 
116
        for change in self.iter_shelvable():
 
117
            self.shelve_change(change)
 
118
 
114
119
    def shelve_rename(self, file_id):
115
120
        """Shelve a file rename.
116
121