'Leave/enter amend mode.'

def do(self):

    u'Attempt    to    enter    amend    mode.        Do    not    allow    this    when    merging.'
    if self.amending:
        if self.model.is_merging:
            self.skip = True
            self.model.set_mode(self.old_mode)
            Interaction.information(N_(u'Cannot    Amend'), N_(u'You    are    in    the    middle    of    a    merge.\nCannot    amend    while    merging.'))
            return
    self.skip = False
    Command.do(self)
    self.model.set_commitmsg(self.new_commitmsg)
    self.model.update_file_status()
