VCS/__init__.py

changeset 6188
5a6ae3be31e6
parent 6048
82ad8ec9548c
child 6303
ec9ebaf206fb
equal deleted inserted replaced
6187:2cc7e3629784 6188:5a6ae3be31e6
38 vc = pluginManager.getPluginObject("version_control", vcs, 38 vc = pluginManager.getPluginObject("version_control", vcs,
39 maybeActive=True) 39 maybeActive=True)
40 if vc is None: 40 if vc is None:
41 # try alternative vcs interfaces assuming, that there is a common 41 # try alternative vcs interfaces assuming, that there is a common
42 # indicator for the alternatives 42 # indicator for the alternatives
43 found = False 43 for vcsData in pluginManager.getVcsSystemIndicators().values():
44 for indicator, vcsData in \ 44 for vcsSystem, _vcsSystemDisplay in vcsData:
45 pluginManager.getVcsSystemIndicators().items(): 45 if vcsSystem == vcs and len(vcsData) > 1:
46 for vcsSystem, vcsSystemDisplay in vcsData: 46 for vcsSystem, _vcsSystemDisplay in vcsData:
47 if vcsSystem == vcs:
48 found = True
49 break
50
51 if found:
52 if len(vcsData) > 1:
53 for vcsSystem, vcsSystemDisplay in vcsData:
54 if vcsSystem != vcs: 47 if vcsSystem != vcs:
55 vc = pluginManager.getPluginObject( 48 vc = pluginManager.getPluginObject(
56 "version_control", vcsSystem, maybeActive=True) 49 "version_control", vcsSystem, maybeActive=True)
57 if vc is not None: 50 if vc is not None:
58 break 51 return vc
59 break 52
60 return vc 53 return vc
61 54
62 55
63 VcsBasicHelperSingleton = None 56 VcsBasicHelperSingleton = None
64 57

eric ide

mercurial