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	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 = {}