def get_repository_heads(repo):
 heads = [repo[h] for h in repo.heads(None)]
 return heads

def get_repository_heads ( repo ) : heads = [ repo [ h ] for h in repo . heads ( None ) ] return heads
return current repository heads .