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 SCMImpl.SCMImpl(system, config)

This is the implementation half of the Bridge to interact with a source code management system, such a CVS or git or the like.

Parameters:

  • system: a <no title> object which lets us control the remote system

  • config: a <no title> object defining the current user

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.

SCMImpl.get_scm_impl(system, config, scm_type=None)

This is a Factory function which will instantiate the correct SCMImpl subclass given the config or SCM type specified.

Parameters:

  • system: a <no title> object which lets us control the remote system

  • config: a <no title> object defining the current user

  • type: optionally a scm type which will be used instead of the config