本文整理汇总了Python中gitflow.branches.ReleaseBranchManager.iter方法的典型用法代码示例。如果您正苦于以下问题:Python ReleaseBranchManager.iter方法的具体用法?Python ReleaseBranchManager.iter怎么用?Python ReleaseBranchManager.iter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gitflow.branches.ReleaseBranchManager
的用法示例。
在下文中一共展示了ReleaseBranchManager.iter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_create_release_changes_active_branch_even_if_dirty_but_without_conflicts
# 需要导入模块: from gitflow.branches import ReleaseBranchManager [as 别名]
# 或者: from gitflow.branches.ReleaseBranchManager import iter [as 别名]
def test_create_release_changes_active_branch_even_if_dirty_but_without_conflicts(self):
gitflow = GitFlow(self.repo)
mgr = ReleaseBranchManager(gitflow)
# In this fixture, odd.py contains changes that would be overwritten.
# Since we don't want to test this here, we revert all local changes in
# odd.py, but leave the local changes in README.txt. These changes
# won't be overwritten by the merge, so git-flow should be able to
# create a new release branch if Git can do this
self.repo.index.reset(index=True, working_tree=True, paths=['odd.py'])
mgr.create('1.0')
self.assertIn('release/1.0', [b.name for b in mgr.iter()])