Plugins/VcsPlugins/vcsSubversion/subversion.py

changeset 1880
dbd4d7698310
parent 1837
36406a806be4
child 1888
03f59d88a62d
--- a/Plugins/VcsPlugins/vcsSubversion/subversion.py	Mon May 28 15:59:36 2012 +0200
+++ b/Plugins/VcsPlugins/vcsSubversion/subversion.py	Tue May 29 20:59:40 2012 +0200
@@ -44,6 +44,7 @@
 from .SvnUrlSelectionDialog import SvnUrlSelectionDialog
 from .SvnRepoBrowserDialog import SvnRepoBrowserDialog
 from .SvnStatusMonitorThread import SvnStatusMonitorThread
+from .SvnUtilities import getConfigPath, amendConfig, createDefaultConfig
 
 from .ProjectBrowserHelper import SvnProjectBrowserHelper
 
@@ -1323,6 +1324,20 @@
         """
         self.statusCache = {}
         
+    def vcsInitConfig(self, project):
+        """
+        Public method to initialize the VCS configuration.
+        
+        This method ensures, that an ignore file exists.
+        
+        @param project reference to the project (Project)
+        """
+        configPath = getConfigPath()
+        if os.path.exists(configPath):
+            amendConfig()
+        else:
+            createDefaultConfig()
+    
     def vcsName(self):
         """
         Public method returning the name of the vcs.

eric ide

mercurial