154 "StopLogOnCopy": True, # used in log browser |
154 "StopLogOnCopy": True, # used in log browser |
155 "UseLogBrowser": True, |
155 "UseLogBrowser": True, |
156 "LogLimit": 100, |
156 "LogLimit": 100, |
157 "CommitMessages": 20, |
157 "CommitMessages": 20, |
158 "PullUpdate": False, |
158 "PullUpdate": False, |
|
159 "PreferUnbundle": False, |
159 "ServerPort": 8000, |
160 "ServerPort": 8000, |
160 "ServerStyle": "", |
161 "ServerStyle": "", |
161 "CleanupPatterns": "*.orig *.rej", |
162 "CleanupPatterns": "*.orig *.rej *~", |
162 } |
163 } |
163 |
164 |
164 from VcsPlugins.vcsMercurial.ProjectHelper import HgProjectHelper |
165 from VcsPlugins.vcsMercurial.ProjectHelper import HgProjectHelper |
165 self.__projectHelperObject = HgProjectHelper(None, None) |
166 self.__projectHelperObject = HgProjectHelper(None, None) |
166 try: |
167 try: |
200 Public method to retrieve the various settings. |
201 Public method to retrieve the various settings. |
201 |
202 |
202 @param key the key of the value to get |
203 @param key the key of the value to get |
203 @return the requested setting |
204 @return the requested setting |
204 """ |
205 """ |
205 if key in ["StopLogOnCopy", "UseLogBrowser", "PullUpdate"]: |
206 if key in ["StopLogOnCopy", "UseLogBrowser", "PullUpdate", "PreferUnbundle"]: |
206 return Preferences.toBool(Preferences.Prefs.settings.value( |
207 return Preferences.toBool(Preferences.Prefs.settings.value( |
207 "Mercurial/" + key, self.__mercurialDefaults[key])) |
208 "Mercurial/" + key, self.__mercurialDefaults[key])) |
208 elif key in ["LogLimit", "CommitMessages", "ServerPort"]: |
209 elif key in ["LogLimit", "CommitMessages", "ServerPort"]: |
209 return int(Preferences.Prefs.settings.value( |
210 return int(Preferences.Prefs.settings.value( |
210 "Mercurial/" + key, self.__mercurialDefaults[key])) |
211 "Mercurial/" + key, self.__mercurialDefaults[key])) |