Пример #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])
Пример #2
0
def heads(repo, proto):
    h = repo.heads()
    return encodelist(h) + "\n"
Пример #3
0
 def check_heads():
     heads = repo.heads()
     return their_heads == ['force'] or their_heads == heads
Пример #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])