Ejemplo n.º 1
0
 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])
Ejemplo n.º 2
0
def heads(repo, proto):
    h = repo.heads()
    return encodelist(h) + "\n"
Ejemplo n.º 3
0
 def check_heads():
     heads = repo.heads()
     return their_heads == ['force'] or their_heads == heads
Ejemplo n.º 4
0
 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])