Allura/allura/model/repository.py
def pretty_tree(self, indent=0, recurse=True, show_id=True):
        '''For debugging, show a nice tree representation'''
        lines = [' ' * indent + 't %s %s' %
                 (name, '\n' + t.unicode_full_tree(indent + 2, show_id=show_id)
                  if recurse else t.hex())
                 for name, t in sorted(self.trees.iteritems())]
        lines += [' ' * indent + 'b %s %s' % (name, oid if show_id else '')
                  for name, oid in sorted(self.blobs.iteritems())]
        output = h.really_unicode('\n'.join(lines)).encode('utf-8')
        return output
For debugging, show a nice tree representation
For debugging, show a nice tree representation
For debugging show a nice tree representation
def pretty_tree(self, indent=0, recurse=True, show_id=True):
        lines = [' ' * indent + 't %s %s' %
                 (name, '\n' + t.unicode_full_tree(indent + 2, show_id=show_id)
                  if recurse else t.hex())
                 for name, t in sorted(self.trees.iteritems())]
        lines += [' ' * indent + 'b %s %s' % (name, oid if show_id else '')
                  for name, oid in sorted(self.blobs.iteritems())]
        output = h.really_unicode('\n'.join(lines)).encode('utf-8')
        return output
def pretty_tree ( self , indent = 0 , recurse = True , show_id = True ) : lines = [ ' ' * indent + 't %s %s' % ( name , '\n' + t . unicode_full_tree ( indent + 2 , show_id = show_id ) if recurse else t . hex ( ) ) for name , t in sorted ( self . trees . iteritems ( ) ) ] lines += [ ' ' * indent + 'b %s %s' % ( name , oid if show_id else '' ) for name , oid in sorted ( self . blobs . iteritems ( ) ) ] output = h . really_unicode ( '\n' . join ( lines ) ) . encode ( 'utf-8' ) return output
For debugging, show a nice tree representation
For debugging show a nice tree representation
'''For debugging, show a nice tree representation'''
self
indent
recurse
show_id