Plugins/PluginVcsMercurial.py

changeset 1312
12506dba74dc
parent 1307
9f7a056dbcc6
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1311:95685f9ad9f8 1312:12506dba74dc
158 "PullUpdate": False, 158 "PullUpdate": False,
159 "PreferUnbundle": False, 159 "PreferUnbundle": False,
160 "ServerPort": 8000, 160 "ServerPort": 8000,
161 "ServerStyle": "", 161 "ServerStyle": "",
162 "CleanupPatterns": "*.orig *.rej *~", 162 "CleanupPatterns": "*.orig *.rej *~",
163 "CreateBackup": False,
163 } 164 }
164 165
165 from VcsPlugins.vcsMercurial.ProjectHelper import HgProjectHelper 166 from VcsPlugins.vcsMercurial.ProjectHelper import HgProjectHelper
166 self.__projectHelperObject = HgProjectHelper(None, None) 167 self.__projectHelperObject = HgProjectHelper(None, None)
167 try: 168 try:
201 Public method to retrieve the various settings. 202 Public method to retrieve the various settings.
202 203
203 @param key the key of the value to get 204 @param key the key of the value to get
204 @return the requested setting 205 @return the requested setting
205 """ 206 """
206 if key in ["StopLogOnCopy", "UseLogBrowser", "PullUpdate", "PreferUnbundle"]: 207 if key in ["StopLogOnCopy", "UseLogBrowser", "PullUpdate", "PreferUnbundle",
208 "CreateBackup"]:
207 return Preferences.toBool(Preferences.Prefs.settings.value( 209 return Preferences.toBool(Preferences.Prefs.settings.value(
208 "Mercurial/" + key, self.__mercurialDefaults[key])) 210 "Mercurial/" + key, self.__mercurialDefaults[key]))
209 elif key in ["LogLimit", "CommitMessages", "ServerPort"]: 211 elif key in ["LogLimit", "CommitMessages", "ServerPort"]:
210 return int(Preferences.Prefs.settings.value( 212 return int(Preferences.Prefs.settings.value(
211 "Mercurial/" + key, self.__mercurialDefaults[key])) 213 "Mercurial/" + key, self.__mercurialDefaults[key]))

eric ide

mercurial