src/eric7/Plugins/VcsPlugins/vcsMercurial/StripExtension/strip.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9473
3f23dbf37dbe
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/StripExtension/strip.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/StripExtension/strip.py	Wed Jul 13 14:55:47 2022 +0200
@@ -17,33 +17,37 @@
     """
     Class implementing the strip extension interface.
     """
+
     def __init__(self, vcs):
         """
         Constructor
-        
+
         @param vcs reference to the Mercurial vcs object
         @type Hg
         """
         super().__init__(vcs)
-    
+
     def hgStrip(self, rev=""):
         """
         Public method to strip revisions from a repository.
-        
+
         @param rev revision to strip from
         @type str
         @return flag indicating that the project should be reread
         @rtype bool
         """
         from .HgStripDialog import HgStripDialog
+
         res = False
-        dlg = HgStripDialog(self.vcs.hgGetTagsList(),
-                            self.vcs.hgGetBranchesList(),
-                            self.vcs.hgGetBookmarksList(),
-                            rev)
+        dlg = HgStripDialog(
+            self.vcs.hgGetTagsList(),
+            self.vcs.hgGetBranchesList(),
+            self.vcs.hgGetBookmarksList(),
+            rev,
+        )
         if dlg.exec() == QDialog.DialogCode.Accepted:
             rev, bookmark, force, noBackup, keep = dlg.getData()
-            
+
             args = self.vcs.initCommand("strip")
             if bookmark:
                 args.append("--bookmark")
@@ -56,10 +60,8 @@
                 args.append("--keep")
             args.append("-v")
             args.append(rev)
-            
-            dia = HgDialog(
-                self.tr("Stripping changesets from repository"),
-                self.vcs)
+
+            dia = HgDialog(self.tr("Stripping changesets from repository"), self.vcs)
             res = dia.startProcess(args)
             if res:
                 dia.exec()

eric ide

mercurial