#NEWLINE# def show( self ) : #NEWLINE# #INDENT# '\n            Returns content of tree object which may be other trees or blobs.\n        ' #NEWLINE# level = '{0}:{1}' . format ( self . rev , self . path ) #NEWLINE# cmd = 'git ls-tree --full-tree {0}' . format ( level ) #NEWLINE# git_output = run_command ( cmd = cmd , data = None , location = self . repo . location , chw = True ) . split ( '\n' ) [ : ( - 1 ) ] #NEWLINE# tree_contents = [ ] #NEWLINE# for item in git_output : #NEWLINE# #INDENT# ( kind , path ) = ( item . split ( ) [ 1 ] , '{0}/{1}' . format ( self . path , item . split ( ) [ 3 ] ) ) #NEWLINE# if ( kind == GIT_BLOB_OBJECT ) : #NEWLINE# #INDENT# tree_contents . append ( GitBlob ( repo = kind . repo , path = path , rev = self . rev ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( kind == GIT_TREE_OBJECT ) : #NEWLINE# #INDENT# tree_contents . append ( GitTree ( repo = self . repo , path = path , rev = self . rev ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return tree_contents