Comments
Patch
@@ -1997,15 +1997,15 @@ def revert(ui, repo, ctx, parents, *pats
def command(table):
'''returns a function object bound to table which can be used as
a decorator for populating table as a command table'''
- def cmd(name, options, synopsis=None):
+ def cmd(name, options=(), synopsis=None):
def decorator(func):
if synopsis:
- table[name] = func, options[:], synopsis
+ table[name] = func, list(options), synopsis
else:
- table[name] = func, options[:]
+ table[name] = func, list(options)
return func
return decorator
return cmd