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


Python filerepo.FileRepository类代码示例

本文整理汇总了Python中easybuild.tools.repository.filerepo.FileRepository的典型用法代码示例。如果您正苦于以下问题:Python FileRepository类的具体用法?Python FileRepository怎么用?Python FileRepository使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: __init__

 def __init__(self, *args):
     """
     Initialize mercurial client to None (will be set later)
     All the real logic is in the setup_repo and create_working_copy methods
     """
     self.client = None
     FileRepository.__init__(self, *args)
开发者ID:ULHPC,项目名称:easybuild-framework,代码行数:7,代码来源:hgrepo.py

示例2: __init__

 def __init__(self, *args):
     """
     Initialize git client to None (will be set later)
     All the real logic is in the setupRepo and createWorkingCopy methods
     """
     self.client = None
     FileRepository.__init__(self, *args)
开发者ID:JackPerdue,项目名称:easybuild-framework,代码行数:7,代码来源:gitrepo.py

示例3: add_easyconfig

 def add_easyconfig(self, cfg, name, version, stats, append):
     """
     Add easyconfig to mercurial repository.
     """
     dest = FileRepository.add_easyconfig(self, cfg, name, version, stats, append)
     # add it to version control
     if dest:
         try:
             self.client.add(dest)
         except (HgCommandError, HgServerError, HgResponseError, ValueError), err:
             self.log.warning("adding %s to mercurial repository failed: %s" % (dest, err))
开发者ID:ULHPC,项目名称:easybuild-framework,代码行数:11,代码来源:hgrepo.py

示例4: add_easyconfig

 def add_easyconfig(self, cfg, name, version, stats, append):
     """
     Add easyconfig to git repository.
     """
     dest = FileRepository.add_easyconfig(self, cfg, name, version, stats, append)
     # add it to version control
     if dest:
         try:
             self.client.add(dest)
         except GitCommandError, err:
             self.log.warning("adding %s to git failed: %s" % (dest, err))
开发者ID:dlagrava,项目名称:easybuild-framework,代码行数:11,代码来源:gitrepo.py

示例5: add_easyconfig

    def add_easyconfig(self, cfg, name, version, stats, append):
        """
        Add easyconfig to SVN repository.
        """
        dest = FileRepository.add_easyconfig(self, cfg, name, version, stats, append)
        self.log.debug("destination = %s" % dest)
        if dest:
            self.log.debug("destination status: %s" % self.client.status(dest))

            if self.client and not self.client.status(dest)[0].is_versioned:
                # add it to version control
                self.log.debug("Going to add %s (working copy: %s, cwd %s)" % (dest, self.wc, os.getcwd()))
                self.client.add(dest)
开发者ID:dnangellight,项目名称:easybuild-framework,代码行数:13,代码来源:svnrepo.py

示例6: test_filerepo

    def test_filerepo(self):
        """Test using FileRepository."""
        repo = FileRepository(self.path)
        repo.init()
        self.assertEqual(repo.wc, self.path)

        subdir = 'sub/dir'
        repo = FileRepository(self.path, subdir)
        repo.init()
        self.assertEqual(repo.wc, self.path)
        self.assertEqual(repo.subdir, subdir)
开发者ID:Caylo,项目名称:easybuild-framework,代码行数:11,代码来源:repository.py

示例7: __init__

 def __init__(self, *args):
     """
     Set self.client to None. Real logic is in setup_repo and create_working_copy
     """
     self.client = None
     FileRepository.__init__(self, *args)
开发者ID:hpcugent,项目名称:easybuild-framework,代码行数:6,代码来源:svnrepo.py


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