Exemple #1
0
def appinit():

    if subssh.to_bool(config.MANAGER_TOOLS):

        manager = GitManager(
            config.REPOSITORIES,
            web_repos_path=config.WEB_DIR,
            urls={"rw": config.URL_RW, "anonymous_read": config.URL_HTTP_CLONE, "webview": config.URL_WEB_VIEW},
        )

        subssh.expose_instance(manager, prefix="git-")
Exemple #2
0
def appinit():

    vcs_init(config)

    if subssh.to_bool(config.MANAGER_TOOLS):
        manager = SubversionManager(config.REPOSITORIES,
                                    web_repos_path=config.WEB_DIR,
                                    urls={'rw': config.URL_RW,
                                          'webview': config.URL_WEB_VIEW},
                                     )

        subssh.expose_instance(manager, prefix="svn-")
Exemple #3
0
def appinit():

    vcs_init(config)

    if subssh.to_bool(config.MANAGER_TOOLS):
        global hg_manager
        hg_manager = MercurialManager(config.REPOSITORIES,
                         web_repos_path=config.WEB_DIR,
                         urls={'rw': config.URL_RW,
                               'anonymous_read': config.URL_HTTP_CLONE,
                               'webview': config.URL_WEB_VIEW},
                         )

        subssh.expose_instance(hg_manager, prefix="hg-")