# HG changeset patch # User Thomas Arendsen Hein # Date 1182082290 -7200 # Node ID 2937d0dbfab008e90a9af07112f54167ef1ecc08 # Parent 5243cece3d977f88eaade0b046d40647ec9b9e37 Make --import-branch option actually work (- is translated to _) diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1522,7 +1522,7 @@ def import_(ui, repo, patch1, *patches, repo.dirstate.setparents(p1, p2) except hg.RepoError: pass - if opts.get('exact') or opts.get('import-branch'): + if opts.get('exact') or opts.get('import_branch'): repo.dirstate.setbranch(branch or 'default') files = {}