當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。