D11657: rust: Reformat source code

2021-10-14 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This fixes test-check-rust-format.t which is currently failing on the default branch. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https:/

D11658: dirstate: Remove unused variable

2021-10-14 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This fixes test-check-pyflakes.t which is currently failing on the default branch. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://ph

D11659: rhg: do not try to open a nodemap for an inline index

2021-10-14 Thread aalekseyev (Arseniy Alekseyev)
aalekseyev created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This saves an [open] system call per file, which is a small saving, but it showed up in the profile at large file counts (it accounted for 30ms out of 400ms

D11660: dirstate-v2: Use attributes as intended instead of properties in v2_data()

2021-10-14 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The property return other integer values instead of None, so `is not None` does not work. This fixes test-dirstate-race.t in pure-Python mode, which curr

D11661: dirstate-v2: Extend node flags to 16 bits

2021-10-14 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Only 7 out of 8 available bits are used right now. Reserve some more. Future versions of Mercurial may assign meaning to some of these bits, with the lim

D11662: dirstate-v2: Separate HAS_FILE_MTIME and HAS_DIRECTORY_MTIME flags

2021-10-14 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Previously the same flag was used, with its meaning based on whether the node otherwise identifies a file tracked anywhere. In addition to being more exp

D11663: narrow: raise StateError when working copy is stale (for detailed exit code)

2021-10-14 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: durin42. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11663 AFFECTED FILES mercurial/narrowspec.py

mercurial-devel | Failed pipeline for branch/default | 1f550350

2021-10-14 Thread Heptapod
Pipeline #27780 has failed! Project: mercurial-devel ( https://foss.heptapod.net/mercurial/mercurial-devel ) Branch: branch/default ( https://foss.heptapod.net/mercurial/mercurial-devel/-/commits/branch/default ) Commit: 1f550350 ( https://foss.heptapod.net/mercurial/mercurial-devel/-/commit/

D11664: rhg: fix `hg cat` interaction with null revision

2021-10-14 Thread aalekseyev (Arseniy Alekseyev)
aalekseyev created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11664 AFFECTED FILES rust/hg-core/src/revlog/revlog.rs tests/test-rhg.t CHANG

D11666: dirstate-v2: delete unused variable (to make test-check-pyflakes.t happy)

2021-10-14 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11666 AFFECTED FILES mercurial/dirstateutils/v2.py CHANGE DETAILS diff --git a

D11665: formatting: format with newer black version

2021-10-14 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY My `black` was upgraded from 20.8b1-4 to 21.4b2-3 today, which made `test-check-format.t` fail. I don't know if we have specified a particular version we're

D11667: copy: recommend `--at-rev .` if target was added in parent commit

2021-10-14 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY If the target file was added in the working copy parent, it's much more likely that the user meant to use `--at-rev .` (to record the copy/rename in the tha

mercurial-devel | Failed pipeline for branch/default | 9b98e726

2021-10-14 Thread Heptapod
Pipeline #27788 has failed! Project: mercurial-devel ( https://foss.heptapod.net/mercurial/mercurial-devel ) Branch: branch/default ( https://foss.heptapod.net/mercurial/mercurial-devel/-/commits/branch/default ) Commit: 9b98e726 ( https://foss.heptapod.net/mercurial/mercurial-devel/-/commit/

D11668: dirstate-v2: add an option to prevent unintentional slow dirstate-v2

2021-10-14 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the project policy discussed in November 2020 and already put to use for the persistent nodemap. REPOSITORY rHG Mercurial BRANCH default REVISIO

D11669: chistedit: add option to show order of commits in opposite order

2021-10-14 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: durin42. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Many users (including me) expect the order of commits in histedit to match the order in `hg log -G` and are confused because

D11670: rhg: fix formatting error reported by test-check-format-rust.t

2021-10-14 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11670 AFFECTED FILES rust/hg-core/src/operations/cat.rs CHANGE DETAILS diff --