module documentation

Create a remote Git repository based on the current one

Function build_cmd Build the command we pass the script to
Function build_parser Undocumented
Function build_remote_script Create the script that will be run on the remote side
Function do_create Undocumented
Function do_list Undocumented
Function get_config_names Undocumented
Function main Undocumented
Function parse_args Parse the command line arguments and config files.
Function parse_url Sanity check our remote URL
Function print_config Print out the git config to push to the newly created repo.
Function push_branches Undocumented
Function read_yn Undocumented
Function setup_branch_tracking Undocumented
Function usage_msg Undocumented
def build_cmd(remote):

Build the command we pass the script to

>>> build_cmd({'scheme': ''})
['sh']
>>> build_cmd({'scheme': 'ssh', 'host': 'host', 'port': 80})
['ssh', '-p', 80, 'host', 'sh']
def build_parser(name, sections=[]):

Undocumented

def build_remote_script(remote, branch):

Create the script that will be run on the remote side

def do_create(options):

Undocumented

def do_list(sections):

Undocumented

def get_config_names(sections):

Undocumented

def main(argv):

Undocumented

def parse_args(argv):

Parse the command line arguments and config files.

Parameters
argv:list of strthe command line arguments
def parse_url(remote_url, name, pkg, template_dir=None, bare=True):

Sanity check our remote URL

def print_config(remote, branches):

Print out the git config to push to the newly created repo.

>>> print_config({'name': 'name', 'url': 'url'}, ['foo', 'bar'])
[remote "name"]
        url = url
        fetch = +refs/heads/*:refs/remotes/name/*
        push = foo
        push = bar
[branch "foo"]
        remote = name
        merge = refs/heads/foo
[branch "bar"]
        remote = name
        merge = refs/heads/bar
def push_branches(remote, branches):

Undocumented

def read_yn():

Undocumented

def setup_branch_tracking(repo, remote, branches):

Undocumented

def usage_msg():

Undocumented