D10505: mail: add a TODO about proper mbox locking

2021-04-20 Thread mharbison72 (Matt Harbison)
mharbison72 created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Per @nbjoerg in IRC, the mbox isn't locked correctly. REPOSITORY rHG Mercurial BRANCH stable REVISION DETAIL https://phab.mercurial-scm.org/D10505

D10504: dirstateguard: use mktemp-like functionality to generate the backup filenames

2021-04-20 Thread spectral (Kyle Lippincott)
spectral created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Previously these were generated with names like: `dirstate.backup.commit.` This could cause problems if two hg commands ran at the same time that used

D10503: narrow: add more status messages when narrowing

2021-04-20 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 Each of the steps I added status messages for in this patch frequently take minutes or tens of minutes for our internal

D10502: packaging: extract pre-computed version when running from plain tarball

2021-04-20 Thread joerg.sonnenberger (Joerg Sonnenberger)
joerg.sonnenberger created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The tarballs created by setup.py are not including the usual archive markers as `hg export` leaves, so the rewrite of the version number

D10501: narrow: add progress-reporting when looking for local changes in `hg tracked`

2021-04-20 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 Looking for local changes (changes not on the given remote) can take a long time, so we should have progress-reporting for

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

2021-04-20 Thread Heptapod
Pipeline #20909 has failed! Project: mercurial-devel ( https://foss.heptapod.net/octobus/mercurial-devel ) Branch: branch/default ( https://foss.heptapod.net/octobus/mercurial-devel/-/commits/branch/default ) Commit: 9fbe3670 (

Failed pipeline for branch/stable | mercurial-devel | 0f014579

2021-04-20 Thread Heptapod
Pipeline #20906 has failed! Project: mercurial-devel ( https://foss.heptapod.net/octobus/mercurial-devel ) Branch: branch/stable ( https://foss.heptapod.net/octobus/mercurial-devel/-/commits/branch/stable ) Commit: 0f014579 (

mercurial@46995: 3 new changesets (3 on stable)

2021-04-20 Thread Mercurial Commits
3 new changesets (3 on stable) in mercurial: https://www.mercurial-scm.org/repo/hg/rev/f67b8946bb1b changeset: 46993:f67b8946bb1b branch: stable tag: 5.8rc0 parent: 46810:bc268ea9f984 parent: 46992:5fa019ceb499 user:Augie Fackler date:Tue Apr 20 11:01:06

D10500: relnotes: copy "next" to "5.8" and clear "next"

2021-04-20 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The same procedure as every year^Wcycle. REPOSITORY rHG Mercurial BRANCH stable REVISION DETAIL https://phab.mercurial-scm.org/D10500 AFFECTED FILES

mercurial@46992: 89 new changesets

2021-04-20 Thread Mercurial Commits
89 new changesets in mercurial: https://www.mercurial-scm.org/repo/hg/rev/ede52e19c752 changeset: 46904:ede52e19c752 user:Pierre-Yves David date:Sat Apr 10 15:28:10 2021 +0200 summary: help: point to `hg help urls` in `hg help config.paths`

D10499: relnote: mention a nodemap bug fixes

2021-04-20 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The fix was in a3720569a43f . REPOSITORY rHG Mercurial BRANCH default

D10498: relnote: document the use of persistent-nodemap by default for Rust build

2021-04-20 Thread marmoute (Pierre-Yves David)
marmoute 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/D10498 AFFECTED FILES relnotes/next CHANGE DETAILS diff --git a/relnotes/next

D10497: relnode: document the move to `zstd` as default compression

2021-04-20 Thread marmoute (Pierre-Yves David)
marmoute 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/D10497 AFFECTED FILES relnotes/next CHANGE DETAILS diff --git a/relnotes/next

D10496: relnote: clarify the backward compatibility entry about p1/p2 swap

2021-04-20 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The previous message might read a bit scary. So we clarify that the nodeid are not affected. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D10490: dirstate-tree: Add has_dir and has_tracked_dir

2021-04-20 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY A node without a `DirstateMap` entry represents a directory. Only some values of `EntryState` represent tracked files. A directory is considered

D10492: dirstate-tree: Add "non normal" and "from other parent" sets

2021-04-20 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Unlike the other DirstateMap implementation, these sets are not materialized separately in memory. Instead we traverse the main tree. REPOSITORY rHG

D10494: rust: Move "lookup" a.k.a. "unsure" paths into `DirstateStatus` struct

2021-04-20 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Instead of having `status()` returning a tuple of those paths and `DirstateStatus`. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D10493: rust: Remove DirstateMap::file_fold_map

2021-04-20 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This was a HashMap constructed on demand and then cached in the DirstateMap struct to avoid reconstructing at the next access. However the only use is in

D10495: rust: Add doc-comments to DirstateStatus fields

2021-04-20 Thread SimonSapin
SimonSapin 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/D10495 AFFECTED FILES rust/hg-core/src/dirstate/status.rs CHANGE DETAILS diff

D10485: rust: Add a Timestamp struct instead of abusing Duration

2021-04-20 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY `SystemTime` would be the standard library type semantically appropriate instead of `Duration`. But since the value is coming from Python as a plain

D10491: dirstate-tree: Add add_file, remove_file, and drop_file

2021-04-20 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Again, various counters need to be kept up to date. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10491

D10489: dirstate-tree: Add clear_ambiguous_times in the new DirstateMap

2021-04-20 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Also drive-by refactor it in the other DirstateMap REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10489

D10486: dirstate-tree: Serialize to disk

2021-04-20 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The existing `pack_dirstate` function relies on implementation details of `DirstateMap`, so extract some parts of it as separate functions for us in the

D10488: dirstate-tree: Add copy_map_insert and copy_map_remove

2021-04-20 Thread SimonSapin
SimonSapin 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/D10488 AFFECTED FILES rust/hg-core/src/dirstate_tree/dirstate_map.rs CHANGE

D10487: dirstate-tree: Maintain a counter of DirstateEntry’s and copy sources

2021-04-20 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This allows implementing __len__ for DirstateMap and CopyMap efficiently, without traversing the tree. REPOSITORY rHG Mercurial BRANCH default

[Bug 6509] New: Mercurial rust extensions crash

2021-04-20 Thread mercurial-bugs
https://bz.mercurial-scm.org/show_bug.cgi?id=6509 Bug ID: 6509 Summary: Mercurial rust extensions crash Product: Mercurial Version: 5.6.1 Hardware: PC OS: Windows Status: UNCONFIRMED Severity: feature

Failed pipeline for branch/default | mercurial-devel | 502de799

2021-04-20 Thread Heptapod
Pipeline #20885 has failed! Project: mercurial-devel ( https://foss.heptapod.net/octobus/mercurial-devel ) Branch: branch/default ( https://foss.heptapod.net/octobus/mercurial-devel/-/commits/branch/default ) Commit: 502de799 (

Failed pipeline for branch/default | mercurial-devel | f758cd7e

2021-04-20 Thread Heptapod
Pipeline #20884 has failed! Project: mercurial-devel ( https://foss.heptapod.net/octobus/mercurial-devel ) Branch: branch/default ( https://foss.heptapod.net/octobus/mercurial-devel/-/commits/branch/default ) Commit: f758cd7e (