VCS/__init__.py

changeset 4079
a3319822d303
parent 4021
195a471c327b
child 4631
5c1a96925da4
equal deleted inserted replaced
4078:0e14bef0b47b 4079:a3319822d303
56 "version_control", vcsSystem, maybeActive=True) 56 "version_control", vcsSystem, maybeActive=True)
57 if vc is not None: 57 if vc is not None:
58 break 58 break
59 break 59 break
60 return vc 60 return vc
61
62
63 VcsBasicHelperSingleton = None
64
65
66 def getBasicHelper(project):
67 """
68 Module function to get a reference to the basic project helper singleton.
69
70 @param project reference to the project object (Project)
71 @return reference to the basic VCS project helper singleton
72 (VcsProjectHelper)
73 """
74 global VcsBasicHelperSingleton
75
76 if VcsBasicHelperSingleton is None:
77 from .ProjectHelper import VcsProjectHelper
78 VcsBasicHelperSingleton = VcsProjectHelper(None, project)
79
80 return VcsBasicHelperSingleton

eric ide

mercurial