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


Python versioncontrol.Repository类代码示例

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


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

示例1: __init__

 def __init__(self, config, name, href, trunk_path='trunk', branches_path='branches'):
     Repository.__init__(self, config, name)
     # allow user to adjust location of branch.
     self.href = config.repos.get(name, href)
     self.trunk_path = trunk_path
     self.branches_path = branches_path
     self.svn_program = config.svn_program
开发者ID:inducer,项目名称:jhbuild,代码行数:7,代码来源:svn.py

示例2: __init__

 def __init__(self, config, name, href, trunk_template=None, branches_template=None, tags_template=None):
     Repository.__init__(self, config, name)
     # allow user to adjust location of branch.
     self.href = config.repos.get(name, href)
     self.trunk_template = trunk_template or "%(module)s/trunk"
     self.branches_template = branches_template or "%(module)s/branches/%(branch)s"
     self.tags_template = tags_template or "%(module)s/tags/%(tag)s"
     self.svn_program = config.svn_program
开发者ID:drayanaindra,项目名称:jhbuild,代码行数:8,代码来源:svn.py

示例3: __init__

 def __init__(self, config, name, cvsroot, password=None):
     Repository.__init__(self, config, name)
     # has the repository path been overridden?
     if self.name in config.repos:
         self.cvsroot = config.repos[name]
     else:
         self.cvsroot = cvsroot
         login(cvsroot, password)
     self.cvs_program = config.cvs_program
开发者ID:rpavlik,项目名称:jhbuild-vrjuggler,代码行数:9,代码来源:cvs.py

示例4: __init__

    def __init__(self, config, name, server, database, defbranch):
        Repository.__init__(self, config, name)

        self.server = config.repos.get(name, server)

        self.database = os.path.join(self.config.checkoutroot,
                                     config.repos.get(name, database))

        self.defbranch = config.repos.get(name, defbranch)
开发者ID:MarFerMS,项目名称:jhbuild,代码行数:9,代码来源:mtn.py

示例5: branch_from_xml

 def branch_from_xml(self, name, branchnode):
     branch = Repository.branch_from_xml(self, name, branchnode)
     # patches represented as children of the branch node
     for childnode in branchnode.childNodes:
         if (childnode.nodeType == childnode.ELEMENT_NODE and
             childnode.nodeName == 'patch'):
             patchfile = childnode.getAttribute('file')
             if childnode.hasAttribute('strip'):
                 patchstrip = int(childnode.getAttribute('strip'))
             else:
                 patchstrip = 0
             branch.patches.append((patchfile, patchstrip))
     return branch
开发者ID:inducer,项目名称:jhbuild,代码行数:13,代码来源:tarball.py

示例6: branch_from_xml

 def branch_from_xml(self, name, branchnode, repositories, default_repo):
     try:
         branch = Repository.branch_from_xml(self, name, branchnode, repositories, default_repo)
     except TypeError:
         raise FatalError(_('branch for %s is not correct, check the moduleset file.') % name)
     # patches represented as children of the branch node
     for childnode in branchnode.childNodes:
         if childnode.nodeType != childnode.ELEMENT_NODE: continue
         if childnode.nodeName == 'patch':
             patchfile = childnode.getAttribute('file')
             if childnode.hasAttribute('strip'):
                 patchstrip = int(childnode.getAttribute('strip'))
             else:
                 patchstrip = 0
             branch.patches.append((patchfile, patchstrip))
         elif childnode.nodeName == 'quilt':
             branch.quilt = get_branch(childnode, repositories, default_repo)
     return branch
开发者ID:mujin,项目名称:jhbuild,代码行数:18,代码来源:tarball.py

示例7: __init__

 def __init__(self, config, name, href):
     Repository.__init__(self, config, name)
     # allow user to adjust location of branch.
     self.href = config.repos.get(name, href)
开发者ID:aissat,项目名称:jhbuild,代码行数:4,代码来源:hg.py

示例8: __init__

 def __init__(self, config, name, href, trunk_template='%(module)s', branches_template='%(module)s/%(branch)s'):
     Repository.__init__(self, config, name)
     # allow user to adjust location of branch.
     self.href = config.repos.get(name, href)
     self.trunk_template = trunk_template
     self.branches_template = branches_template
开发者ID:cheatiiit,项目名称:jhbuild-1,代码行数:6,代码来源:bzr.py

示例9: __init__

 def __init__(self, config, name, archive, href=None):
     Repository.__init__(self, config, name)
     self.archive = archive
     self.href = href
开发者ID:inducer,项目名称:jhbuild,代码行数:4,代码来源:arch.py

示例10: __init__

 def __init__(self, config, name):
     Repository.__init__(self, config, name)
开发者ID:mujin,项目名称:jhbuild,代码行数:2,代码来源:pip.py


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