src/eric7/Project/Project.py

branch
eric7
changeset 9647
e4c2ae118781
parent 9646
ab5678db972f
child 9648
5c5c48dd6608
diff -r ab5678db972f -r e4c2ae118781 src/eric7/Project/Project.py
--- a/src/eric7/Project/Project.py	Sat Dec 24 17:31:46 2022 +0100
+++ b/src/eric7/Project/Project.py	Sun Dec 25 11:34:05 2022 +0100
@@ -985,6 +985,15 @@
         """
         return self.vcs
 
+    def isVcsControlled(self):
+        """
+        Public method to check, if the project is controlled by a VCS.
+
+        @return flag indicating a VCS controlled project
+        @rtype bool
+        """
+        return self.vcs is not None
+
     def handlePreferencesChanged(self):
         """
         Public slot used to handle the preferencesChanged signal.

eric ide

mercurial