コード例 #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
ファイル: wireproto.py プロジェクト: ezc/mercurial
def heads(repo, proto):
    h = repo.heads()
    return encodelist(h) + "\n"
コード例 #3
0
ファイル: wireproto.py プロジェクト: ezc/mercurial
 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])