changeset 5093 | 88803a69b24a |
parent 3749 | f9567a7fa3b3 |
child 5638 | a9b7e425674f |
--- a/mercurial/fancyopts.py Sat Aug 11 12:47:58 2007 +0200 +++ b/mercurial/fancyopts.py Sat Aug 11 13:07:47 2007 +0200 @@ -9,7 +9,10 @@ for s, l, d, c in options: pl = l.replace('-', '_') map['-'+s] = map['--'+l] = pl - state[pl] = d + if isinstance(d, list): + state[pl] = d[:] + else: + state[pl] = d dt[pl] = type(d) if (d is not None and d is not True and d is not False and not callable(d)):