Patchwork cmdutil: remove unused 'confirmopts' constant

login
register
mail settings
Submitter Yuya Nishihara
Date May 6, 2018, 2:55 a.m.
Message ID <c2430f270cf08d47d1b3.1525575315@mimosa>
Download mbox | patch
Permalink /patch/31277/
State Accepted
Headers show

Comments

Yuya Nishihara - May 6, 2018, 2:55 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1524137623 -32400
#      Thu Apr 19 20:33:43 2018 +0900
# Node ID c2430f270cf08d47d1b3ed22c3a5f1af9db9f305
# Parent  bebe0c7559fa5015d636a73be9fba988911ff760
cmdutil: remove unused 'confirmopts' constant

Follows up f10cb49951e1.
Gregory Szorc - May 6, 2018, 4:20 a.m.
On Sat, May 5, 2018 at 7:55 PM, Yuya Nishihara <yuya@tcha.org> wrote:

> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1524137623 -32400
> #      Thu Apr 19 20:33:43 2018 +0900
> # Node ID c2430f270cf08d47d1b3ed22c3a5f1af9db9f305
> # Parent  bebe0c7559fa5015d636a73be9fba988911ff760
> cmdutil: remove unused 'confirmopts' constant
>

Queued, thanks.


>
> Follows up f10cb49951e1.
>
> diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
> --- a/mercurial/cmdutil.py
> +++ b/mercurial/cmdutil.py
> @@ -63,11 +63,6 @@ dryrunopts = [
>       _('do not perform actions, just print output')),
>  ]
>
> -confirmopts = [
> -    ('', 'confirm', None,
> -     _('ask before applying actions')),
> -]
> -
>  remoteopts = [
>      ('e', 'ssh', '',
>       _('specify ssh command to use'), _('CMD')),
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>

Patch

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -63,11 +63,6 @@  dryrunopts = [
      _('do not perform actions, just print output')),
 ]
 
-confirmopts = [
-    ('', 'confirm', None,
-     _('ask before applying actions')),
-]
-
 remoteopts = [
     ('e', 'ssh', '',
      _('specify ssh command to use'), _('CMD')),