# HG changeset patch # User Matt Mackall # Date 2011-05-26 22:15:35 # Node ID 5b48ad1e7f1a0bb6e408993d50eb8959255834ea # Parent 39e81b9377e65fd1358543598d5e61ce2be97df9 cmdutil: make private copies of option lists to avoid sharing monkeypatches diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -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