Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/fancyopts.py @ 5148:a04694e08775
merge with crew-stable
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sat, 11 Aug 2007 13:35:25 +0200 |
parents | 88803a69b24a |
children |
line wrap: on
line diff
--- a/mercurial/fancyopts.py +++ b/mercurial/fancyopts.py @@ -9,7 +9,10 @@ def fancyopts(args, options, state): 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)):