本文整理汇总了Python中jarn.mkrelease.scm.Git.create_tag方法的典型用法代码示例。如果您正苦于以下问题:Python Git.create_tag方法的具体用法?Python Git.create_tag怎么用?Python Git.create_tag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jarn.mkrelease.scm.Git
的用法示例。
在下文中一共展示了Git.create_tag方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testCreateAndPushRemoteTag
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import create_tag [as 别名]
def testCreateAndPushRemoteTag(self):
scm = Git(Process(quiet=True))
self.clone()
self.assertEqual(scm.create_tag(self.clonedir, "2.6", "testpackage", "2.6", True), 0)
self.assertEqual(scm.tag_exists(self.clonedir, "2.6"), True)
self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
示例2: testCreateAndPushLocalTag
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import create_tag [as 别名]
def testCreateAndPushLocalTag(self):
scm = Git()
self.assertEqual(scm.create_tag(self.packagedir, "2.6", "testpackage", "2.6", True), 0)
self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
示例3: testCreateExistingTag
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import create_tag [as 别名]
def testCreateExistingTag(self):
scm = Git(Process(quiet=True))
self.assertEqual(scm.create_tag(self.packagedir, "2.6", "testpackage", "2.6", False), 0)
self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
self.assertRaises(SystemExit, scm.create_tag, self.packagedir, "2.6", "testpackage", "2.6", False)
示例4: testCreateTag
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import create_tag [as 别名]
def testCreateTag(self):
scm = Git()
self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), False)
self.assertEqual(scm.create_tag(self.packagedir, "2.6", "testpackage", "2.6", False), 0)
self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)