Patchwork D8222: commands: switch one call of check_at_most_one_arg to strings

login
register
mail settings
Submitter phabricator
Date March 4, 2020, 10:16 p.m.
Message ID <1ed6b3e2e5e5a2c3732254b794f2fe4d@localhost.localdomain>
Download mbox | patch
Permalink /patch/45487/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2020, 10:16 p.m.
Closed by commit rHG5a5aee8ba980: commands: switch one call of check_at_most_one_arg to strings (authored by durin42).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8222?vs=20484&id=20491

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8222/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8222

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




To: durin42, #hg-reviewers, marmoute
Cc: marmoute, mercurial-devel

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -7665,7 +7665,7 @@ 
 
     Returns 0 on success, 1 if there are unresolved files.
     """
-    cmdutil.check_at_most_one_arg(opts, b'clean', b'check', b'merge')
+    cmdutil.check_at_most_one_arg(opts, 'clean', 'check', 'merge')
     rev = opts.get('rev')
     date = opts.get('date')
     clean = opts.get('clean')