Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 14442:5b48ad1e7f1a
cmdutil: make private copies of option lists to avoid sharing monkeypatches
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 May 2011 17:15:35 -0500 |
parents | a79fea6b3e77 |
children | a67e866f46f9 |
line wrap: on
line diff
--- 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