D9832: simplemerge: delete unused find_unconflicted()

2021-01-18 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The function has been unused ever since it was introduced in 465b9ea02868

mercurial@46239: 16 new changesets

2021-01-18 Thread Mercurial Commits
16 new changesets in mercurial: https://www.mercurial-scm.org/repo/hg/rev/fcc324a228fe changeset: 46224:fcc324a228fe user:Jun Wu date:Tue Jan 12 14:45:32 2021 -0800 summary: revlog: use size_t for nodetree capacity https://www.mercurial-scm.org/repo/hg/rev/88dfe1c279bb

D9831: exchangev2: avoid second look-up by node

2021-01-18 Thread joerg.sonnenberger (Joerg Sonnenberger)
joerg.sonnenberger created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Accessing the revlog by node is slightly more expensive than by revision, so look up the revision first and use it afterwards. REPOSITORY rHG

D9830: commit: look-up new revision once

2021-01-18 Thread joerg.sonnenberger (Joerg Sonnenberger)
joerg.sonnenberger created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Look-up by node is slightly more expensive, so since it is necessary more than once, do it explicitly. REPOSITORY rHG Mercurial BRANCH default

D9829: clang-format: reorder includes to appease the formatter

2021-01-18 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The back order was introduced in d0225a22040c . REPOSITORY rHG Mercurial BRANCH

D9826: callback: add a new_cl_rev_callback

2021-01-18 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This will be useful for consistency and cache warming. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9826

D9828: changelog: use revision number as the cache key internally

2021-01-18 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This allow both rev and node request to match the cache. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9828

D9827: changelog: cache the latest `changelogrevision` access

2021-01-18 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This will speedup repeated call to the same data. Which can be common when warming various cache after adding a revision. REPOSITORY rHG Mercurial BRANCH

D9825: cext: add Python 3.10 support

2021-01-18 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY - Replace "Py_TYPE(obj) = type;" with "Py_SET_TYPE(obj, type);" - Add pythoncapi_compat.h header file to get Py_SET_TYPE() on Python 2.7-3.8. Header file

D9824: share: make different options for upgrade and downgrade share-safe

2021-01-18 Thread pulkit (Pulkit Goyal)
pulkit created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This makes things more configurable. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9824 AFFECTED FILES

D9823: share: move share safe functionality out of experimental

2021-01-18 Thread pulkit (Pulkit Goyal)
pulkit created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. pulkit updated this revision to Diff 25119. REVISION SUMMARY The share-safe functionality is complete and all configuration options are implemented. The behavior is well

D9822: upgrade: re-read current requirements after taking lock

2021-01-18 Thread pulkit (Pulkit Goyal)
pulkit created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Since we are writing to repository, it's better to re-read after taking the lock. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D9821: sqlitestore: disable test with chg

2021-01-18 Thread joerg.sonnenberger (Joerg Sonnenberger)
joerg.sonnenberger created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY There are known issues with transactions not being closed in a timely fashion, making the test flakey. REPOSITORY rHG Mercurial BRANCH default

D9820: purge: move extension into core mercurial

2021-01-18 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The motivation is simple: it's nicer to avoid gating basic functionality. To reduce the risk of people shooting themselves in the feet, `--confirm` is

D9819: purge: also deal with directory with --confirm

2021-01-18 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Getting the exact number is simple (you have to project the result of previous deletion to detect super-directory with only about-to-be-deleted content). So

D9818: purge: add a --confirm option

2021-01-18 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The options provide a prompt to the user before permanent deletion are made. The prompt is currently not aware of directory deletion. I'll fix this in the

D9817: relnote: remove the reference to `debugstrip`

2021-01-18 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The `debug` namespace is not intended for end user and advertising it is a path to confusion and trouble. I think we should wait for the `admin` namespace to