changeset 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 39e81b9377e6
children 6fe6defdc924
files mercurial/cmdutil.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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