Patchwork [2,of,2] crecord: remove toggleamend

login
register
mail settings
Submitter Jordi Gutiérrez Hermoso
Date Dec. 10, 2019, 10:08 p.m.
Message ID <fa825ca77328e397df68.1576015707@chloe>
Download mbox | patch
Permalink /patch/43692/
State Superseded
Headers show

Comments

Jordi Gutiérrez Hermoso - Dec. 10, 2019, 10:08 p.m.
# HG changeset patch
# User Jordi Gutiérrez Hermoso <jordigh@octave.org>
# Date 1576015629 18000
#      Tue Dec 10 17:07:09 2019 -0500
# Node ID fa825ca77328e397df683a91c8beeca7060bf726
# Parent  bd10bc4bdb994b875040c0c58f1c341df66ddd46
crecord: remove toggleamend

Previous commit removed its only calling site.

Patch

diff --git a/mercurial/crecord.py b/mercurial/crecord.py
--- a/mercurial/crecord.py
+++ b/mercurial/crecord.py
@@ -1763,32 +1763,6 @@  are you sure you want to review/edit and
         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