Skip to content

Commit 6134caf

Browse files
Felipe Contrerasgitster
authored andcommitted
remote-hg: use hashlib instead of hg sha1 util
To be in sync with remote-bzr. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent aa93845 commit 6134caf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

contrib/remote-helpers/git-remote-hg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import shutil
2222
import subprocess
2323
import urllib
2424
import atexit
25-
import urlparse
25+
import urlparse, hashlib
2626

2727
#
2828
# If you want to switch to hg-git compatibility mode:
@@ -933,7 +933,7 @@ def main(args):
933933

934934
if alias[4:] == url:
935935
is_tmp = True
936-
alias = util.sha1(alias).hexdigest()
936+
alias = hashlib.sha1(alias).hexdigest()
937937
else:
938938
is_tmp = False
939939

0 commit comments

Comments
 (0)