def get_id_from(cls, repo, branch, path): s = '/'.join([repo, branch, path]) docid = 'blob%s' % utils.generate_hash(s=s) return docid
def get_id_from(cls, path): docid = 'repo%s' % utils.generate_hash(s=path) return docid