MCPcopy Create free account
hub / github.com/ipython/ipython / merge_branch

Function merge_branch

tools/git-mpr.py:21–34  ·  view source on GitHub ↗

try to merge the givent branch into the current one If something does not goes smoothly, merge is aborted Returns True if merge successful, False otherwise

(repo, branch )

Source from the content-addressed store, hash-verified

19not_merged = {}
20
21def merge_branch(repo, branch ):
22 """try to merge the givent branch into the current one
23
24 If something does not goes smoothly, merge is aborted
25
26 Returns True if merge successful, False otherwise
27 """
28 # Delete the branch first
29 try :
30 check_call(['git', 'pull', repo, branch], stdin=io.open(os.devnull))
31 except CalledProcessError :
32 check_call(['git', 'merge', '--abort'])
33 return False
34 return True
35
36
37def git_new_branch(name):

Callers 1

merge_prFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected