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