##// END OF EJS Templates
cmdutil: make private copies of option lists to avoid sharing monkeypatches
Matt Mackall -
r14442:5b48ad1e default
parent child Browse files
Show More
@@ -1215,9 +1215,9 b' def command(table):'
1215 1215 def cmd(name, options, synopsis=None):
1216 1216 def decorator(func):
1217 1217 if synopsis:
1218 table[name] = func, options, synopsis
1218 table[name] = func, options[:], synopsis
1219 1219 else:
1220 table[name] = func, options
1220 table[name] = func, options[:]
1221 1221 return func
1222 1222 return decorator
1223 1223
General Comments 0
You need to be logged in to leave comments. Login now