Project/Project.py

changeset 6558
db48660ca7c0
parent 6549
50ae5813ac40
child 6564
cd5853703e8e
--- a/Project/Project.py	Wed Oct 24 19:18:40 2018 +0200
+++ b/Project/Project.py	Wed Oct 24 19:59:49 2018 +0200
@@ -4783,8 +4783,17 @@
             if self.vcsMenu is not None:
                 self.vcsProjectHelper.initMenu(self.vcsMenu)
                 self.vcsMenu.setEnabled(self.vcsSoftwareAvailable())
+        
         return vcs
-        
+    
+    def resetVCS(self):
+        """
+        Public method to reset the VCS.
+        """
+        self.pdata["VCS"] = 'None'
+        self.vcs = self.initVCS()
+        e5App().getObject("PluginManager").deactivateVcsPlugins()
+    
     def __showContextMenuVCS(self):
         """
         Private slot called before the vcs menu is shown.

eric ide

mercurial