当前位置: 首页>>代码示例>>Python>>正文


Python Mercurial.get_branch_from_sandbox方法代码示例

本文整理汇总了Python中jarn.mkrelease.scm.Mercurial.get_branch_from_sandbox方法的典型用法代码示例。如果您正苦于以下问题:Python Mercurial.get_branch_from_sandbox方法的具体用法?Python Mercurial.get_branch_from_sandbox怎么用?Python Mercurial.get_branch_from_sandbox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在jarn.mkrelease.scm.Mercurial的用法示例。


在下文中一共展示了Mercurial.get_branch_from_sandbox方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testSwitchBranch

# 需要导入模块: from jarn.mkrelease.scm import Mercurial [as 别名]
# 或者: from jarn.mkrelease.scm.Mercurial import get_branch_from_sandbox [as 别名]
 def testSwitchBranch(self):
     scm = Mercurial(Process(quiet=True))
     self.branch(self.packagedir, '2.x')
     self.modify(self.packagedir)
     self.assertEqual(scm.checkin_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')
开发者ID:,项目名称:,代码行数:10,代码来源:

示例2: testSwitchBranch

# 需要导入模块: from jarn.mkrelease.scm import Mercurial [as 别名]
# 或者: from jarn.mkrelease.scm.Mercurial import get_branch_from_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")
开发者ID:avoinea,项目名称:jarn.mkrelease,代码行数:10,代码来源:test_mercurial.py

示例3: testSwitchSameBranch

# 需要导入模块: from jarn.mkrelease.scm import Mercurial [as 别名]
# 或者: from jarn.mkrelease.scm.Mercurial import get_branch_from_sandbox [as 别名]
 def testSwitchSameBranch(self):
     scm = Mercurial()
     self.assertEqual(scm.get_branch_from_sandbox(self.packagedir), 'default')
     self.assertEqual(scm.switch_branch(self.packagedir, 'default'), 0)
     self.assertEqual(scm.get_branch_from_sandbox(self.packagedir), 'default')
开发者ID:,项目名称:,代码行数:7,代码来源:

示例4: testGetRemoteBranch

# 需要导入模块: from jarn.mkrelease.scm import Mercurial [as 别名]
# 或者: from jarn.mkrelease.scm.Mercurial import get_branch_from_sandbox [as 别名]
 def testGetRemoteBranch(self):
     scm = Mercurial()
     self.clone()
     self.assertEqual(scm.get_branch_from_sandbox(self.clonedir), 'default')
开发者ID:,项目名称:,代码行数:6,代码来源:

示例5: testGetLocalBranchFromBranch

# 需要导入模块: from jarn.mkrelease.scm import Mercurial [as 别名]
# 或者: from jarn.mkrelease.scm.Mercurial import get_branch_from_sandbox [as 别名]
 def testGetLocalBranchFromBranch(self):
     scm = Mercurial()
     self.branch(self.packagedir, '2.x')
     self.assertEqual(scm.get_branch_from_sandbox(self.packagedir), '2.x')
开发者ID:,项目名称:,代码行数:6,代码来源:

示例6: testGetLocalBranch

# 需要导入模块: from jarn.mkrelease.scm import Mercurial [as 别名]
# 或者: from jarn.mkrelease.scm.Mercurial import get_branch_from_sandbox [as 别名]
 def testGetLocalBranch(self):
     scm = Mercurial()
     self.assertEqual(scm.get_branch_from_sandbox(self.packagedir), "default")
开发者ID:avoinea,项目名称:jarn.mkrelease,代码行数:5,代码来源:test_mercurial.py


注:本文中的jarn.mkrelease.scm.Mercurial.get_branch_from_sandbox方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。