示例#1
0
文件: git.py 项目: epeli/revisioncask
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-")
示例#2
0
文件: svn.py 项目: epeli/revisioncask
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-")
示例#3
0
文件: hg.py 项目: epeli/revisioncask
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-")