equal
deleted
inserted
replaced
202 msg += ( |
202 msg += ( |
203 b"\n(compatibility will be dropped after Mercurial-%s," |
203 b"\n(compatibility will be dropped after Mercurial-%s," |
204 b" update your code.)" |
204 b" update your code.)" |
205 ) % version |
205 ) % version |
206 warnings.warn(pycompat.sysstr(msg), DeprecationWarning, stacklevel + 1) |
206 warnings.warn(pycompat.sysstr(msg), DeprecationWarning, stacklevel + 1) |
|
207 # on python 3 with chg, we will need to explicitly flush the output |
|
208 sys.stderr.flush() |
207 |
209 |
208 |
210 |
209 DIGESTS = { |
211 DIGESTS = { |
210 b'md5': hashlib.md5, |
212 b'md5': hashlib.md5, |
211 b'sha1': hashutil.sha1, |
213 b'sha1': hashutil.sha1, |