/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: Aaron Bentley
  • Date: 2009-07-12 04:27:31 UTC
  • mto: (4526.6.5)
  • mto: This revision was merged to the branch mainline in revision 4534.
  • Revision ID: aaron@aaronbentley.com-20090712042731-ba2g643aeta40wrq
Reverse the way changes are described by Shelver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
                elif changed:
97
97
                    yield ('modify text', file_id)
98
98
 
 
99
    def shelve_change(self, change):
 
100
        if change[0] == 'rename':
 
101
            self.shelve_rename(change[1])
 
102
        elif change[0] == 'delete file':
 
103
            self.shelve_deletion(change[1])
 
104
        elif change[0] == 'add file':
 
105
            self.shelve_creation(change[1])
 
106
        elif change[0] == 'change kind':
 
107
            self.shelve_content_change(change[1])
 
108
        elif change[0] == 'modify target':
 
109
            self.shelve_modify_target(change[1])
 
110
 
99
111
    def shelve_rename(self, file_id):
100
112
        """Shelve a file rename.
101
113