~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to shelf.py

  • Committer: Aaron Bentley
  • Date: 2008-10-11 17:09:28 UTC
  • mto: (0.16.56 shelf-ui)
  • mto: This revision was merged to the branch mainline in revision 3820.
  • Revision ID: aaron@aaronbentley.com-20081011170928-6vy5i29mgeof4j5n
Allow adding message to shelf

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
        shelf_file = open(self.transport.local_abspath(str(next_shelf)), 'wb')
230
230
        return next_shelf, shelf_file
231
231
 
232
 
    def shelve_changes(self, creator):
 
232
    def shelve_changes(self, creator, message=None):
233
233
        next_shelf, shelf_file = self.new_shelf()
234
234
        try:
235
 
            creator.write_shelf(shelf_file)
 
235
            creator.write_shelf(shelf_file, message)
236
236
        finally:
237
237
            shelf_file.close()
238
238
        creator.transform()