本文整理汇总了Python中jhbuild.versioncontrol.Repository.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Repository.__init__方法的具体用法?Python Repository.__init__怎么用?Python Repository.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jhbuild.versioncontrol.Repository
的用法示例。
在下文中一共展示了Repository.__init__方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from jhbuild.versioncontrol import Repository [as 别名]
# 或者: from jhbuild.versioncontrol.Repository import __init__ [as 别名]
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
示例2: __init__
# 需要导入模块: from jhbuild.versioncontrol import Repository [as 别名]
# 或者: from jhbuild.versioncontrol.Repository import __init__ [as 别名]
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
示例3: __init__
# 需要导入模块: from jhbuild.versioncontrol import Repository [as 别名]
# 或者: from jhbuild.versioncontrol.Repository import __init__ [as 别名]
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
示例4: __init__
# 需要导入模块: from jhbuild.versioncontrol import Repository [as 别名]
# 或者: from jhbuild.versioncontrol.Repository import __init__ [as 别名]
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)
示例5: __init__
# 需要导入模块: from jhbuild.versioncontrol import Repository [as 别名]
# 或者: from jhbuild.versioncontrol.Repository import __init__ [as 别名]
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)
示例6: __init__
# 需要导入模块: from jhbuild.versioncontrol import Repository [as 别名]
# 或者: from jhbuild.versioncontrol.Repository import __init__ [as 别名]
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
示例7: __init__
# 需要导入模块: from jhbuild.versioncontrol import Repository [as 别名]
# 或者: from jhbuild.versioncontrol.Repository import __init__ [as 别名]
def __init__(self, config, name, archive, href=None):
Repository.__init__(self, config, name)
self.archive = archive
self.href = href
示例8: __init__
# 需要导入模块: from jhbuild.versioncontrol import Repository [as 别名]
# 或者: from jhbuild.versioncontrol.Repository import __init__ [as 别名]
def __init__(self, config, name):
Repository.__init__(self, config, name)