##// END OF EJS Templates
commands: use any() instead of `if a or b or c`...
marmoute -
r45680:44d5233e default
parent child Browse files
Show More
@@ -2184,7 +2184,8 b' def config(ui, repo, *values, **opts):'
2184 """
2184 """
2185
2185
2186 opts = pycompat.byteskwargs(opts)
2186 opts = pycompat.byteskwargs(opts)
2187 if opts.get(b'edit') or opts.get(b'local') or opts.get(b'global'):
2187 editopts = (b'edit', b'local', b'global')
2188 if any(opts.get(o) for o in editopts):
2188 if opts.get(b'local') and opts.get(b'global'):
2189 if opts.get(b'local') and opts.get(b'global'):
2189 raise error.Abort(_(b"can't use --local and --global together"))
2190 raise error.Abort(_(b"can't use --local and --global together"))
2190
2191
General Comments 0
You need to be logged in to leave comments. Login now