Make --import-branch option actually work (- is translated to _)
authorThomas Arendsen Hein <thomas@intevation.de>
Sun, 17 Jun 2007 14:11:30 +0200
changeset 4593 2937d0dbfab0
parent 4592 5243cece3d97
child 4597 ec431334e4fc
Make --import-branch option actually work (- is translated to _)
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 = {}