eric6/Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 7396
c6399bce2c0b
parent 7370
5fb53279f2df
child 7429
6983c461550f
--- 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)

eric ide

mercurial