#NEWLINE# @ staticmethod #NEWLINE# def successfully_commit_files( file_names , commit = 'initial_commit' , cwd = TEMP_DIR ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# shell_out ( ( [ 'bzr' , 'add' ] + file_names ) , cwd = cwd ) #NEWLINE# shell_out ( [ 'bzr' , 'commit' , '-m' , commit ] , cwd = cwd ) #NEWLINE# with from_dir ( cwd ) : #NEWLINE# #INDENT# return Bzr ( ) . current_branch ( ) #NEWLINE# #UNINDENT# #UNINDENT# except ( OSError , CalledProcessError ) : #NEWLINE# #INDENT# return False