Allura/allura/model/repository.py
def compute_hash(self):
        '''Compute a hash based on the contents of the tree.  Note that this
        hash does not necessarily correspond to any actual DVCS hash.
        '''
        lines = (
            ['tree' + x.name + x.id for x in self.tree_ids]
            + ['blob' + x.name + x.id for x in self.blob_ids]
            + [x.type + x.name + x.id for x in self.other_ids])
        sha_obj = sha1()
        for line in sorted(lines):
            sha_obj.update(line)
        return sha_obj.hexdigest()
Compute a hash based on the contents of the tree.  Note that this
        hash does not necessarily correspond to any actual DVCS hash.
        
Compute a hash based on the contents of the tree.  Note that this
hash does not necessarily correspond to any actual DVCS hash.
Compute a hash based on the contents of the tree . Note that this hash does not necessarily correspond to any actual DVCS hash .
def compute_hash(self):
        lines = (
            ['tree' + x.name + x.id for x in self.tree_ids]
            + ['blob' + x.name + x.id for x in self.blob_ids]
            + [x.type + x.name + x.id for x in self.other_ids])
        sha_obj = sha1()
        for line in sorted(lines):
            sha_obj.update(line)
        return sha_obj.hexdigest()
def compute_hash ( self ) : lines = ( [ 'tree' + x . name + x . id for x in self . tree_ids ] + [ 'blob' + x . name + x . id for x in self . blob_ids ] + [ x . type + x . name + x . id for x in self . other_ids ] ) sha_obj = sha1 ( ) for line in sorted ( lines ) : sha_obj . update ( line ) return sha_obj . hexdigest ( )
Compute a hash based on the contents of the tree.
Compute a hash based on the contents of the tree .
'''Compute a hash based on the contents of the tree.  Note that this
        hash does not necessarily correspond to any actual DVCS hash.
        '''
self