Plugins/VcsPlugins/vcsSubversion/subversion.py

changeset 1880
dbd4d7698310
parent 1837
36406a806be4
child 1888
03f59d88a62d
equal deleted inserted replaced
1879:194a055fff04 1880:dbd4d7698310
42 from .SvnBlameDialog import SvnBlameDialog 42 from .SvnBlameDialog import SvnBlameDialog
43 from .SvnRelocateDialog import SvnRelocateDialog 43 from .SvnRelocateDialog import SvnRelocateDialog
44 from .SvnUrlSelectionDialog import SvnUrlSelectionDialog 44 from .SvnUrlSelectionDialog import SvnUrlSelectionDialog
45 from .SvnRepoBrowserDialog import SvnRepoBrowserDialog 45 from .SvnRepoBrowserDialog import SvnRepoBrowserDialog
46 from .SvnStatusMonitorThread import SvnStatusMonitorThread 46 from .SvnStatusMonitorThread import SvnStatusMonitorThread
47 from .SvnUtilities import getConfigPath, amendConfig, createDefaultConfig
47 48
48 from .ProjectBrowserHelper import SvnProjectBrowserHelper 49 from .ProjectBrowserHelper import SvnProjectBrowserHelper
49 50
50 import Preferences 51 import Preferences
51 import Utilities 52 import Utilities
1321 """ 1322 """
1322 Public method to clear the status cache. 1323 Public method to clear the status cache.
1323 """ 1324 """
1324 self.statusCache = {} 1325 self.statusCache = {}
1325 1326
1327 def vcsInitConfig(self, project):
1328 """
1329 Public method to initialize the VCS configuration.
1330
1331 This method ensures, that an ignore file exists.
1332
1333 @param project reference to the project (Project)
1334 """
1335 configPath = getConfigPath()
1336 if os.path.exists(configPath):
1337 amendConfig()
1338 else:
1339 createDefaultConfig()
1340
1326 def vcsName(self): 1341 def vcsName(self):
1327 """ 1342 """
1328 Public method returning the name of the vcs. 1343 Public method returning the name of the vcs.
1329 1344
1330 @return always 'Subversion' (string) 1345 @return always 'Subversion' (string)

eric ide

mercurial