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>
maint
Felipe Contreras 2013-04-26 16:12:35 -05:00 committed by Junio C Hamano
parent aa93845661
commit 6134caf2c1
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import shutil
import subprocess import subprocess
import urllib import urllib
import atexit import atexit
import urlparse import urlparse, hashlib


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


if alias[4:] == url: if alias[4:] == url:
is_tmp = True is_tmp = True
alias = util.sha1(alias).hexdigest() alias = hashlib.sha1(alias).hexdigest()
else: else:
is_tmp = False is_tmp = False