# HG changeset patch # User Matt Mackall # Date 1306448135 18000 # Node ID 5b48ad1e7f1a0bb6e408993d50eb8959255834ea # Parent 39e81b9377e65fd1358543598d5e61ce2be97df9 cmdutil: make private copies of option lists to avoid sharing monkeypatches diff -r 39e81b9377e6 -r 5b48ad1e7f1a mercurial/cmdutil.py --- a/mercurial/cmdutil.py Thu May 26 19:00:47 2011 +0300 +++ b/mercurial/cmdutil.py Thu May 26 17:15:35 2011 -0500 @@ -1215,9 +1215,9 @@ 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