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>
This commit is contained in:
Felipe Contreras 2013-04-26 16:12:35 -05:00 committed by Junio C Hamano
parent aa93845661
commit 6134caf2c1

View file

@ -22,7 +22,7 @@ import shutil
import subprocess
import urllib
import atexit
import urlparse
import urlparse, hashlib
#
# If you want to switch to hg-git compatibility mode:
@ -933,7 +933,7 @@ def main(args):
if alias[4:] == url:
is_tmp = True
alias = util.sha1(alias).hexdigest()
alias = hashlib.sha1(alias).hexdigest()
else:
is_tmp = False