本文整理汇总了Python中gbp.git.repository.GitRepository.get_tags方法的典型用法代码示例。如果您正苦于以下问题:Python GitRepository.get_tags方法的具体用法?Python GitRepository.get_tags怎么用?Python GitRepository.get_tags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gbp.git.repository.GitRepository
的用法示例。
在下文中一共展示了GitRepository.get_tags方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_specify_upstream
# 需要导入模块: from gbp.git.repository import GitRepository [as 别名]
# 或者: from gbp.git.repository.GitRepository import get_tags [as 别名]
def test_specify_upstream(self, srcrpm):
"""Test --upstream command line option."""
eq_(GBS(argv=["gbs", "import", "--upstream-branch=upstream",
srcrpm]), None)
repo = GitRepository("./ail")
eq_(repo.get_local_branches(), ['master', 'pristine-tar', 'upstream'])
eq_(repo.get_tags(), ['upstream/0.2.29', 'vendor/0.2.29-2.3'])
示例2: test_set_author_name_email
# 需要导入模块: from gbp.git.repository import GitRepository [as 别名]
# 或者: from gbp.git.repository.GitRepository import get_tags [as 别名]
def test_set_author_name_email(self, srcrpm):
"""Test --author-name and --author-email command line options."""
eq_(GBS(argv=["gbs", "import", "--author-name=test",
"[email protected]",
srcrpm]), None)
repo = GitRepository("./app-core")
eq_(repo.get_local_branches(), ['master', 'pristine-tar', 'upstream'])
eq_(repo.get_tags(), ['upstream/1.2', 'vendor/1.2-19.3'])
示例3: test_import_spec
# 需要导入模块: from gbp.git.repository import GitRepository [as 别名]
# 或者: from gbp.git.repository.GitRepository import get_tags [as 别名]
def test_import_spec(self, srcdir):
"""Test importing from spec."""
eq_(GBS(argv=["gbs", "import",
os.path.join(srcdir, 'bluez.spec')]), None)
repo = GitRepository("./bluez")
eq_(repo.get_local_branches(), ['master', 'pristine-tar', 'upstream'])
# No packging tag as patch-import fails
eq_(repo.get_tags(), ['upstream/4.87'])
eq_(len(repo.get_commits(until='master')), 2)
示例4: test_import_srcrpm
# 需要导入模块: from gbp.git.repository import GitRepository [as 别名]
# 或者: from gbp.git.repository.GitRepository import get_tags [as 别名]
def test_import_srcrpm(self, srcrpm):
"""Test importing from source rpm."""
eq_(GBS(argv=["gbs", "import", srcrpm]), None)
repo = GitRepository("./ail")
eq_(repo.get_local_branches(), ['master', 'pristine-tar', 'upstream'])
eq_(repo.get_tags(), ['upstream/0.2.29', 'vendor/0.2.29-2.3'])