ConsoleUser
Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com
This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.
All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.
- class SCM.SCM(system, config, scm_type=None)¶
Expose an interface for performing source code management tasks without having a specific implementation in mind.
Parameters:
system: a <no title> object to communicate with the target system
config: a <no title> object holding all our configuration
scm_type: optionally the (string) name of the type of client to create, overriding anything in the config object
- clone(remote)¶
Create a local repo that follows the given remote one. This is like a git clone or cvs checkout.
Parameters:
remote: the string that will tell this SCM tool how to find the remote repo
- commit_changes(message)¶
Commit any changes into the local repository.
- new_repo()¶
Create a new repository.
- update_local()¶
Update the local repository from any upstream repos this is configured to use.
- update_remote()¶
Update a remote repo based on this one.