#NEWLINE# def merge( self , branch ) : #NEWLINE# #INDENT# cmd = Popen ( ( 'git merge %s' % branch ) , cwd = str ( self . path ) , stdout = PIPE , shell = True ) #NEWLINE# cmdresult = cmd . communicate ( ) [ 0 ] #NEWLINE# if cmd . returncode : #NEWLINE# #INDENT# raise Exception ( cmdresult )