--- a/VCS/VersionControl.py Sun Feb 23 15:24:28 2014 +0100 +++ b/VCS/VersionControl.py Sun Feb 23 19:20:43 2014 +0100 @@ -465,6 +465,15 @@ """ pass + def vcsSupportCommandOptions(self): + """ + Public method to signal the support of user settable command options. + + @return flag indicating the support of user settable command options + (boolean) + """ + return True + def vcsDefaultOptions(self): """ Public method used to retrieve the default options for the vcs. @@ -484,11 +493,12 @@ @param options a dictionary of option strings with keys as defined by the default options """ - for key in options: - try: - self.options[key] = options[key] - except KeyError: - pass + if self.vcsSupportCommandOptions(): + for key in options: + try: + self.options[key] = options[key] + except KeyError: + pass def vcsGetOptions(self): """ @@ -497,7 +507,10 @@ @return a dictionary of option strings that can be passed to vcsSetOptions. """ - return self.options + if self.vcsSupportCommandOptions(): + return self.options + else: + return self.defaultOptions def vcsSetOtherData(self, data): """