コード例 #1
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-")
コード例 #2
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-")