mercurial/cmdutil.py
changeset 14442 5b48ad1e7f1a
parent 14323 a79fea6b3e77
child 14518 a67e866f46f9
--- 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