diff -r 154754d1f137 -r 72b91f905065 mercurial/hg.py --- a/mercurial/hg.py Fri Dec 29 05:22:06 2017 +0530 +++ b/mercurial/hg.py Fri Dec 29 05:25:27 2017 +0530 @@ -569,7 +569,7 @@ 'unable to resolve identity of remote)\n')) elif sharenamemode == 'remote': sharepath = os.path.join( - sharepool, hashlib.sha1(source).hexdigest()) + sharepool, node.hex(hashlib.sha1(source).digest())) else: raise error.Abort(_('unknown share naming mode: %s') % sharenamemode)