##// END OF EJS Templates
infinitepush: use the new function to determine push destination...
infinitepush: use the new function to determine push destination Since 066b8d8f75b8, the push command accept multiple destination. `infinitepush` was not aware of that. We now use the new `urlutil.get_push_paths` function to determine the push destination, fixing the issue. This will also make future evolution of that logic transparent for infinitepush We still disallow push to multiple destinations if infinite push is enabled because I don't know what this means for infinite push. However user will now get a clear error message instead of a crash. Differential Revision: https://phab.mercurial-scm.org/D10379

File last commit:

r47543:521ac0d7 stable
r47673:6071bfab default
Show More
hashutil.py
10 lines | 215 B | text/x-python | PythonLexer
Augie Fackler
hashutil: new package for hashing-related features...
r44516 from __future__ import absolute_import
import hashlib
try:
Matt Harbison
typing: disable import error warnings that are already handled...
r47543 from ..thirdparty import sha1dc # pytype: disable=import-error
Augie Fackler
hashutil: new package for hashing-related features...
r44516
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1