本文整理汇总了Python中gitflow.branches.FeatureBranchManager.iter方法的典型用法代码示例。如果您正苦于以下问题:Python FeatureBranchManager.iter方法的具体用法?Python FeatureBranchManager.iter怎么用?Python FeatureBranchManager.iter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gitflow.branches.FeatureBranchManager
的用法示例。
在下文中一共展示了FeatureBranchManager.iter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_create_feature_changes_active_branch_even_if_dirty_but_without_conflicts
# 需要导入模块: from gitflow.branches import FeatureBranchManager [as 别名]
# 或者: from gitflow.branches.FeatureBranchManager import iter [as 别名]
def test_create_feature_changes_active_branch_even_if_dirty_but_without_conflicts(self):
gitflow = GitFlow(self.repo)
mgr = FeatureBranchManager(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 feature branch if Git can do this
self.repo.index.reset(index=True, working_tree=True, paths=['odd.py'])
mgr.create('foo')
self.assertIn('feature/foo', [b.name for b in mgr.iter()])