def check_heads(): heads = repo.heads() heads_hash = util.sha1(''.join(sorted(heads))).digest() return (their_heads == ['force'] or their_heads == heads or their_heads == ['hashed', heads_hash])
def heads(repo, proto): h = repo.heads() return encodelist(h) + "\n"
def check_heads(): heads = repo.heads() return their_heads == ['force'] or their_heads == heads