mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
cmdutil: make private copies of option lists to avoid sharing monkeypatches
This commit is contained in:
parent
a7eca9ebe7
commit
5f2364be24
@ -1215,9 +1215,9 @@ def command(table):
|
||||
def cmd(name, options, synopsis=None):
|
||||
def decorator(func):
|
||||
if synopsis:
|
||||
table[name] = func, options, synopsis
|
||||
table[name] = func, options[:], synopsis
|
||||
else:
|
||||
table[name] = func, options
|
||||
table[name] = func, options[:]
|
||||
return func
|
||||
return decorator
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user