Mercurial > hg
changeset 43888:51bfd056a2ee
crecord: remove toggleamend
Previous commit removed its only calling site.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Tue, 10 Dec 2019 17:07:09 -0500 |
parents | c06eba91c380 |
children | 458504a8cca1 |
files | mercurial/crecord.py |
diffstat | 1 files changed, 0 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/crecord.py Tue Dec 10 17:02:09 2019 -0500 +++ b/mercurial/crecord.py Tue Dec 10 17:07:09 2019 -0500 @@ -1767,32 +1767,6 @@ else: return False - def toggleamend(self, opts, test): - """Toggle the amend flag. - - When the amend flag is set, a commit will modify the most recently - committed changeset, instead of creating a new changeset. Otherwise, a - new changeset will be created (the normal commit behavior). - """ - - if opts.get(b'amend') is None: - opts[b'amend'] = True - msg = _( - b"Amend option is turned on -- committing the currently " - b"selected changes will not create a new changeset, but " - b"instead update the most recently committed changeset.\n\n" - b"Press any key to continue." - ) - elif opts.get(b'amend') is True: - opts[b'amend'] = None - msg = _( - b"Amend option is turned off -- committing the currently " - b"selected changes will create a new changeset.\n\n" - b"Press any key to continue." - ) - if not test: - self.confirmationwindow(msg) - def recenterdisplayedarea(self): """ once we scrolled with pg up pg down we can be pointing outside of the