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>

Felipe Contreras committed Apr 26, 2013 at 16:12 UTC 6134caf2c10b9cd0df431fdefcf145984aeb80e3
1 file changed +2 -2
contrib/remote-helpers/git-remote-hg
+2 -2
@@ -22,7 +22,7 @@ import shutil
22 import subprocess
23 import urllib
24 import atexit
25 -import urlparse
25 +import urlparse, hashlib
26
27 #
28 # If you want to switch to hg-git compatibility mode:
@@ -933,7 +933,7 @@ def main(args):
933
934 if alias[4:] == url:
935 is_tmp = True
936 - alias = util.sha1(alias).hexdigest()
936 + alias = hashlib.sha1(alias).hexdigest()
937 else:
938 is_tmp = False
939