git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
aa93845
)
remote-hg: use hashlib instead of hg sha1 util
author
Felipe Contreras
<redacted>
Fri, 26 Apr 2013 21:12:35 +0000
(16:12 -0500)
committer
Junio C Hamano
<redacted>
Fri, 26 Apr 2013 22:20:27 +0000
(15:20 -0700)
To be in sync with remote-bzr.
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/remote-helpers/git-remote-hg
patch
|
blob
|
history
diff --git
a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index 80b36067374226447c1bdcb96273fd7ec67b4d31..06920f28f210318bb790db217ac231fcc6ae26d8 100755
(executable)
--- a/
contrib/remote-helpers/git-remote-hg
+++ b/
contrib/remote-helpers/git-remote-hg
@@
-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
git clone https://git.99rst.org/PROJECT