本文整理汇总了Python中jhbuild.versioncontrol.Branch类的典型用法代码示例。如果您正苦于以下问题:Python Branch类的具体用法?Python Branch怎么用?Python Branch使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Branch类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, repository, module, subdir, checkoutdir=None,
branch=None, tag=None, unmirrored_module=None):
Branch.__init__(self, repository, module, checkoutdir)
self.subdir = subdir
self.branch = branch
self.tag = tag
self.unmirrored_module = unmirrored_module
示例2: __init__
def __init__(self, repository, module, version, checkoutdir,
source_size, source_hash, branch_id, source_subdir=None):
Branch.__init__(self, repository, module, checkoutdir)
self.version = version
self.source_size = source_size
self.source_hash = source_hash
self.patches = []
self.quilt = None
self.branch_id = branch_id
self.source_subdir = source_subdir
示例3: checkout
def checkout(self, buildscript):
if not inpath("hg", os.environ["PATH"].split(os.pathsep)):
raise CommandError(_("%s not found") % "hg")
Branch.checkout(self, buildscript)
示例4: __init__
def __init__(self, repository, module, version, checkoutdir):
Branch.__init__(self, repository, module, checkoutdir)
self.version = version
示例5: may_checkout
def may_checkout(self, buildscript):
return Branch.may_checkout(self, buildscript)
示例6: __init__
def __init__(self, repository, module, module_name, checkoutdir, revision):
Branch.__init__(self, repository, module, checkoutdir)
self.module_name = module_name
self.revision = revision
示例7: __init__
def __init__(self, repository, module_href, checkoutdir, tag, revspec):
Branch.__init__(self, repository, module_href, checkoutdir)
self._revspec = None
self.revspec = (tag, revspec)
示例8: __init__
def __init__(self, repository, version):
Branch.__init__(self, repository, module = None, checkoutdir = None)
self.version = version
示例9: __init__
def __init__(self, repository, module, checkoutdir, revision,
update_new_dirs, override_checkoutdir):
Branch.__init__(self, repository, module, checkoutdir)
self.revision = revision
self.update_new_dirs = update_new_dirs
self.override_checkoutdir = override_checkoutdir
示例10: __init__
def __init__(self, repository, name, checkoutdir, branch, module=None):
Branch.__init__(self, repository, branch, checkoutdir)
self.name = name
self.branch = branch
self.mtn_module = module
示例11: checkout
def checkout(self, buildscript):
if not inpath('darcs', os.environ['PATH'].split(os.pathsep)):
raise CommandError(_('%s not found') % 'darcs')
Branch.checkout(self, buildscript)
self._fix_permissions()