When one cancels a commit in "bzr qcommit" (QBzr, file commit.py), the global commit message gets saved:
def save_message(self):
message = unicode(self.message.toPlainText())
if message:
config = self.tree.branch.get_config() config.set_user_option('qbzr_commit_message', message)
and when "bzr qcommit" starts, the saved message is restored: def restore_message(self):
config = self.tree.branch.get_config()._get_branch_data_config()
message = config.get_user_option('qbzr_commit_message')
if message: self.message.setText(message)
This is only for the global commit message, and is not about multiple revisions like "bzr uncommit -r" can do.
Suggestion for when one uncommits several revisions: concatenate comments; for example if we uncommit two revisions, r1 the oldest and r2 the newest,
the comments could be put in chronological order: the saved comment for a file would be:
r1's comment for this file\n
r2's comment for this file.
When one cancels a commit in "bzr qcommit" (QBzr, file commit.py), the global commit message gets saved: self.message. toPlainText( )) branch. get_config( )
config. set_user_ option( 'qbzr_commit_ message' , message) message( self): branch. get_config( )._get_ branch_ data_config( ) get_user_ option( 'qbzr_commit_ message' )
self. message. setText( message)
def save_message(self):
message = unicode(
if message:
config = self.tree.
and when "bzr qcommit" starts, the saved message is restored: def restore_
config = self.tree.
message = config.
if message:
This is only for the global commit message, and is not about multiple revisions like "bzr uncommit -r" can do.
Suggestion for when one uncommits several revisions: concatenate comments; for example if we uncommit two revisions, r1 the oldest and r2 the newest,
the comments could be put in chronological order: the saved comment for a file would be:
r1's comment for this file\n
r2's comment for this file.