463 |
463 |
464 @param project reference to the project (Project) |
464 @param project reference to the project (Project) |
465 """ |
465 """ |
466 pass |
466 pass |
467 |
467 |
|
468 def vcsSupportCommandOptions(self): |
|
469 """ |
|
470 Public method to signal the support of user settable command options. |
|
471 |
|
472 @return flag indicating the support of user settable command options |
|
473 (boolean) |
|
474 """ |
|
475 return True |
|
476 |
468 def vcsDefaultOptions(self): |
477 def vcsDefaultOptions(self): |
469 """ |
478 """ |
470 Public method used to retrieve the default options for the vcs. |
479 Public method used to retrieve the default options for the vcs. |
471 |
480 |
472 @return a dictionary with the vcs operations as key and |
481 @return a dictionary with the vcs operations as key and |
482 Public method used to set the options for the vcs. |
491 Public method used to set the options for the vcs. |
483 |
492 |
484 @param options a dictionary of option strings with keys as |
493 @param options a dictionary of option strings with keys as |
485 defined by the default options |
494 defined by the default options |
486 """ |
495 """ |
487 for key in options: |
496 if self.vcsSupportCommandOptions(): |
488 try: |
497 for key in options: |
489 self.options[key] = options[key] |
498 try: |
490 except KeyError: |
499 self.options[key] = options[key] |
491 pass |
500 except KeyError: |
|
501 pass |
492 |
502 |
493 def vcsGetOptions(self): |
503 def vcsGetOptions(self): |
494 """ |
504 """ |
495 Public method used to retrieve the options of the vcs. |
505 Public method used to retrieve the options of the vcs. |
496 |
506 |
497 @return a dictionary of option strings that can be passed to |
507 @return a dictionary of option strings that can be passed to |
498 vcsSetOptions. |
508 vcsSetOptions. |
499 """ |
509 """ |
500 return self.options |
510 if self.vcsSupportCommandOptions(): |
|
511 return self.options |
|
512 else: |
|
513 return self.defaultOptions |
501 |
514 |
502 def vcsSetOtherData(self, data): |
515 def vcsSetOtherData(self, data): |
503 """ |
516 """ |
504 Public method used to set vcs specific data. |
517 Public method used to set vcs specific data. |
505 |
518 |