# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1492767272 -19800 # Node ID f1aaa100f2a5f78e9b713db9c3802ed539b84eb5 # Parent 93155367a2a66d067257d6b83c76bbbc87a2051c py3: handle opts correctly for unbundle There is just a check whether the value is None or not. So even having optupdate as unicodes won't harm us. diff -r 93155367a2a6 -r f1aaa100f2a5 mercurial/commands.py --- a/mercurial/commands.py Fri Apr 21 02:20:46 2017 +0530 +++ b/mercurial/commands.py Fri Apr 21 15:04:32 2017 +0530 @@ -5340,7 +5340,7 @@ else: modheads = gen.apply(repo, 'unbundle', 'bundle:' + fname) - return postincoming(ui, repo, modheads, opts.get('update'), None, None) + return postincoming(ui, repo, modheads, opts.get(r'update'), None, None) @command('^update|up|checkout|co', [('C', 'clean', None, _('discard uncommitted changes (no backup)')),