当前位置: 首页>>代码示例>>Python>>正文


Python scm.detect_scm_system函数代码示例

本文整理汇总了Python中webkitpy.common.checkout.scm.detect_scm_system函数的典型用法代码示例。如果您正苦于以下问题:Python detect_scm_system函数的具体用法?Python detect_scm_system怎么用?Python detect_scm_system使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了detect_scm_system函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: scm

    def scm(self):
        # Lazily initialize SCM to not error-out before command line parsing (or when running non-scm commands).
        original_cwd = os.path.abspath(".")
        if not self._scm:
            self._scm = detect_scm_system(original_cwd)

        if not self._scm:
            script_directory = os.path.abspath(sys.path[0])
            self._scm = detect_scm_system(script_directory)
            if self._scm:
                log("The current directory (%s) is not a WebKit checkout, using %s" % (original_cwd, self._scm.checkout_root))
            else:
                error("FATAL: Failed to determine the SCM system for either %s or %s" % (original_cwd, script_directory))

        return self._scm
开发者ID:mikezit,项目名称:Webkit_Code,代码行数:15,代码来源:main.py

示例2: setUp

 def setUp(self):
     SVNTestRepository.setup(self)
     self._setup_git_clone_of_svn_repository()
     os.chdir(self.git_checkout_path)
     self.scm = detect_scm_system(self.git_checkout_path)
     # For historical reasons, we test some checkout code here too.
     self.checkout = Checkout(self.scm)
开发者ID:UIKit0,项目名称:WebkitAIR,代码行数:7,代码来源:scm_unittest.py

示例3: default_out_dir

def default_out_dir():
    current_scm = scm.detect_scm_system(os.path.dirname(sys.argv[0]))
    if not current_scm:
        return os.getcwd()
    root_dir = current_scm.checkout_root
    if not root_dir:
        return os.getcwd()
    out_dir = os.path.join(root_dir, "LayoutTests/fast/canvas/webgl")
    if os.path.isdir(out_dir):
        return out_dir
    return os.getcwd()
开发者ID:0x4d52,项目名称:JavaScriptCore-X,代码行数:11,代码来源:update_webgl_conformance_tests.py


注:本文中的webkitpy.common.checkout.scm.detect_scm_system函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。