- Mar 09, 2022
-
-
Gregory Szorc authored
We dropped support for Python 3.5. So we no longer need to do this. Differential Revision: https://phab.mercurial-scm.org/D12362
-
Gregory Szorc authored
The deleted if condition is always true now that we dropped Python 2 and 3.5. Differential Revision: https://phab.mercurial-scm.org/D12361
-
- Mar 10, 2022
-
-
Kyle Lippincott authored
I encountered this on Linux in a VM environment with a rather strange networking setup (both on the host and in the VM). Differential Revision: https://phab.mercurial-scm.org/D12371
-
- Mar 09, 2022
-
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D12372
-
Raphaël Gomès authored
This upgrades all dependencies to their latest version. This is routinely done to keep-up. Differential Revision: https://phab.mercurial-scm.org/D12359
-
Raphaël Gomès authored
This upgrades all dependencies to their latest version, except `clap` and `zstd` whose latest versions do not support our minimum supported Rust version 1.48.0. Same as for `rhg`, it contains security fix for `regex` which does not affect us too much, but doesn't hurt, and the rest of the upgrades are there simply to keep up. Differential Revision: https://phab.mercurial-scm.org/D12358
-
Raphaël Gomès authored
This upgrades all dependencies to their latest version, except `clap`, which is upgraded to the last 2.x series version, since 3.x does not support our minimum supported Rust version of 1.48.0. This contains a security fix for `regex` which does not affect us too much, but doesn't hurt, and the rest of the upgrades are there simply to keep up. Differential Revision: https://phab.mercurial-scm.org/D12357
-
- Mar 04, 2022
-
-
Yuya Nishihara authored
Follows up 0bb28b7736bc "chgserver: remove Python 2 support code." On Python 2, we had to close newfp prior to restoring the original file description since "delete newfp" would otherwise close the file descriptor shared with the long-lived fp: in attachio(): newfp = os.fdopen(fp.fileno(), mode, bufsize) in _restoreio(): newfp.close() # temporarily close newfp.fileno() (= fp.fileno()) os.dup2(fd, fp.fileno()) # reopen fp.fileno() with original fd On the other hand, we shouldn't call newfp.close() on Python 3 since any function calls are proxied to the underlying file object by procutil.LineBufferedWrapper.
-
- Feb 08, 2022
-
-
Simon Sapin authored
This switches to using `HashMap` from the hashbrown crate, in order to use its `raw_entry_mut` method. The standard library’s `HashMap` is also based on this same crate, but `raw_entry_mut` is not yet stable there: https://github.com/rust-lang/rust/issues/56167 Using version 0.9 because 0.10 is yanked and 0.11 requires Rust 1.49 This replaces in `DirstateMap::get_or_insert_node` a call to `HashMap<K, V>::entry` with `K = WithBasename<Cow<'on_disk, HgPath>>`. `entry` takes and consumes an "owned" `key: K` parameter, in case a new entry ends up inserted. This key is converted by `to_cow` from a value that borrows the `'path` lifetime. When this function is called by `Dirstate::new_v1`, `'path` is in fact the same as `'on_disk` so `to_cow` can return an owned key that contains `Cow::Borrowed`. For other callers, `to_cow` needs to create a `Cow::Owned` and thus make a costly heap memory allocation. This is wasteful if this key was already present in the map. Even when inserting a new node this is typically the case for its ancestor nodes (assuming most directories have numerous descendants). Differential Revision: https://phab.mercurial-scm.org/D12317
-
- Mar 04, 2022
-
-
Raphaël Gomès authored
Now that we don't have Python 2 jobs, we can go with shorter names. Differential Revision: https://phab.mercurial-scm.org/D12354
-
Martin von Zweigbergk authored
Differential Revision: https://phab.mercurial-scm.org/D12355
-
- Feb 21, 2022
-
-
Gregory Szorc authored
We no longer support Python 2. Differential Revision: https://phab.mercurial-scm.org/D12353
-
Gregory Szorc authored
The inheritance from object is implied in Python 3. So this should be equivalent. This change was generated via an automated search and replace. So there may have been some accidental changes. Differential Revision: https://phab.mercurial-scm.org/D12352
-
Gregory Szorc authored
In Python 3, `class foo:` is equivalent to `class foo(object):`. So we can allow the former form now. Differential Revision: https://phab.mercurial-scm.org/D12351
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12350
-
Gregory Szorc authored
We require Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12349
-
- Mar 02, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12348
-
- Feb 21, 2022
-
-
Gregory Szorc authored
The Python 3 implementation is a no-op. So this is equivalent. We still keep util.iterfile() around for backwards API compatibility to help the Python 3 migration. It can be deleted in a future release. Differential Revision: https://phab.mercurial-scm.org/D12347
-
- Mar 03, 2022
-
-
Gregory Szorc authored
The workaround for Python 2 is no longer needed. So we can delete some code. Differential Revision: https://phab.mercurial-scm.org/D12346
-
- Feb 21, 2022
-
-
Gregory Szorc authored
Always true since we require Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12345
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12344
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12343
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12342
-
- Mar 02, 2022
-
-
Gregory Szorc authored
pycompat.itervalues(x) just calls x.values(). So this is equivalent. The rewrite was perfomed via an automated search and replace. Differential Revision: https://phab.mercurial-scm.org/D12341
-
- Feb 21, 2022
-
-
Gregory Szorc authored
pycompat.unicode is an alias to str. Differential Revision: https://phab.mercurial-scm.org/D12340
-
- Mar 08, 2022
-
-
Gregory Szorc authored
pycompat.rawinput() is an alias to input() Differential Revision: https://phab.mercurial-scm.org/D12339
-
- Mar 02, 2022
-
-
Gregory Szorc authored
pycompat.long is aliased to int. So this should have no change in functionality. Differential Revision: https://phab.mercurial-scm.org/D12338
-
- Feb 21, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12336
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12335
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12334
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12333
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12332
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12331
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12330
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12329
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12328
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12327
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12326
-
- Mar 02, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12325
-
- Feb 21, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12324
-