changeset 42395 | eddff539f5be |
parent 41415 | 873a28d7e962 |
child 42396 | 37ff80505dfd |
--- a/hgext/githelp.py Thu May 23 11:14:32 2019 -0400 +++ b/hgext/githelp.py Thu May 30 16:38:42 2019 +0800 @@ -192,12 +192,15 @@ def apply(ui, repo, *args, **kwargs): cmdoptions = [ ('p', 'p', int, ''), + ('', 'directory', '', ''), ] args, opts = parseoptions(ui, cmdoptions, args) cmd = Command('import --no-commit') if (opts.get('p')): cmd['-p'] = opts.get('p') + if opts.get('directory'): + cmd['--prefix'] = opts.get('directory') cmd.extend(args) ui.status((bytes(cmd)), "\n")