# 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 -r 5243cece3d97 -r 2937d0dbfab0 mercurial/commands.py --- a/mercurial/commands.py Thu Jun 14 09:01:51 2007 -0700 +++ b/mercurial/commands.py Sun Jun 17 14:11:30 2007 +0200 @@ -1522,7 +1522,7 @@ 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 = {}