#NEWLINE# def using_bzr( cwd ) : #NEWLINE# #INDENT# 'Test whether the directory cwd is contained in a bazaar repository.' #NEWLINE# try : #NEWLINE# #INDENT# bzr_log = shell_out ( [ 'bzr' , 'log' ] , cwd = cwd ) #NEWLINE# return True #NEWLINE# #UNINDENT# except ( CalledProcessError , OSError ) : #NEWLINE# #INDENT# return False