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
parent
aa93845661
commit
6134caf2c1
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue