Plugins/VcsPlugins/vcsPySvn/subversion.py

changeset 1880
dbd4d7698310
parent 1837
36406a806be4
child 1883
2de804dc1452
--- a/Plugins/VcsPlugins/vcsPySvn/subversion.py	Mon May 28 15:59:36 2012 +0200
+++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py	Tue May 29 20:59:40 2012 +0200
@@ -48,6 +48,7 @@
 from .SvnUrlSelectionDialog import SvnUrlSelectionDialog
 from .SvnRepoBrowserDialog import SvnRepoBrowserDialog
 from .SvnStatusMonitorThread import SvnStatusMonitorThread
+from .SvnUtilities import getConfigPath, amendConfig, createDefaultConfig
 
 from .ProjectBrowserHelper import SvnProjectBrowserHelper
 
@@ -1493,6 +1494,20 @@
         """
         self.statusCache = {}
         
+    def vcsInitConfig(self, project):
+        """
+        Public method to initialize the VCS configuration.
+        
+        This method ensures, that eric specific files and directories are ignored.
+        
+        @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