diff -r dd50d0f4c588 -r c6399bce2c0b eric6/Plugins/VcsPlugins/vcsMercurial/hg.py --- a/eric6/Plugins/VcsPlugins/vcsMercurial/hg.py Tue Feb 04 19:41:50 2020 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/hg.py Tue Feb 04 19:43:37 2020 +0100 @@ -2706,9 +2706,9 @@ return False from .HgImportDialog import HgImportDialog - dlg = HgImportDialog() + dlg = HgImportDialog(self) if dlg.exec_() == QDialog.Accepted: - (patchFile, noCommit, message, date, user, stripCount, + (patchFile, noCommit, message, date, user, withSecret, stripCount, force) = dlg.getParameters() args = self.initCommand("import") @@ -2730,6 +2730,8 @@ args.append(str(stripCount)) if force: args.append("--force") + if withSecret: + args.append("--secret") args.append(patchFile) dia = HgDialog(self.tr("Import Patch"), self)