changeset 4593:2937d0dbfab0

Make --import-branch option actually work (- is translated to _)
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 17 Jun 2007 14:11:30 +0200
parents 5243cece3d97
children ec431334e4fc
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 = {}