mercurial@47941: 2 new changesets (2 on stable)

2021-09-15 Thread Mercurial Commits
2 new changesets (2 on stable) in mercurial: https://www.mercurial-scm.org/repo/hg/rev/cc33deae66a1 changeset: 47940:cc33deae66a1 branch: stable user:Valentin Gatien-Baron date:Fri Sep 10 14:37:03 2021 -0400 summary: narrow: show repo corruption when commiting empty

D11411: rhg: Reuse manifest when checking status of multiple ambiguous files

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY When `rhg status` cannot determine whether a file is clean based on mtime and size alone, it needs to compare its contents with those found in the parent

D11410: rust: Return HgError instead of RevlogError in revlog constructors

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This leaves fewer cases for callers to handle, as RevlogError is more general REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D11405: rust: Move lazy initialization of `Repo::dirstate_map` into a generic struct

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY More components of `Repo` will be added following the same pattern. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D11408: rust: Add a Filelog struct that wraps Revlog

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Some filelog-specific logic is moved from code `rhg cat` into this struct where it can better be reused. Additionally, a missing end delimiter for

D11407: rust: Add Repo::manifest(revision)

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This deduplicates some common code. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11407 AFFECTED FILES

D11412: rhg: Don’t compare ambiguous files one byte at a time

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Even though the use of `BufReader` reduces the number of syscalls to read the file from disk, `.bytes()` yields a separate `Result` for every byte.

D11406: rust: Keep lazily-initialized Changelog and Manifest log on the Repo object

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY That way if one of them is accessed multiple times it won’t be reopened from the filesystem. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D11409: rhg: Align with Python on some revset parsing corner cases

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY In particular: - A string of ASCII digits can be either an integer on a hex prefix - The NULL node ID should convert to the NULL revision number

D11404: rust: Rename Manifest to Manifestlog, ManifestEntry to Manifest

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This appears to match the terminology used in Python code and on https://www.mercurial-scm.org/wiki/Manifest REPOSITORY rHG Mercurial BRANCH default

mercurial-devel | Failed pipeline for branch/stable | b13cba93

2021-09-15 Thread Heptapod
Pipeline #26823 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: b13cba93 (

mercurial-devel | Failed pipeline for branch/default | 3e15e150

2021-09-15 Thread Heptapod
Pipeline #26834 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: 3e15e150 (

mercurial-devel | Failed pipeline for branch/default | 2463d5d0

2021-09-15 Thread Heptapod
Pipeline #26837 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: 2463d5d0 (

D11403: rhg: fall back if subrepos are detected

2021-09-15 Thread Raphaël Gomès
Alphare created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY We do not handle subrepos yet, the addition of the support for `-r .` will break if we don't fall back. REPOSITORY rHG Mercurial BRANCH default REVISION

D11413: dirstate-v2: Remove the `.d` suffix in data file names

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY It could cause confusion since `.d` is already used for revlogs. This suffix is not necessary since there is already a `dirstate.` prefix. REPOSITORY rHG

mercurial-devel | Failed pipeline for branch/default | 0114dccb

2021-09-15 Thread Heptapod
Pipeline #26821 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: 0114dccb (

bugzilla weekly report (2021-09-13)

2021-09-15 Thread Octobot
Bug activity report, between 2021-09-06 and 2021-09-13 * urgent+: 6 bugs * unconfirmed: 85 bugs (3 added, 1 removed) * new: 3 bugs * closed: 2 bugs * need example: 0 bugs * new details: 0 bugs * active: 27 bugs * long inactive: 3 bugs urgent+ --- Open of urgent or critical bugs.

D11415: rust: Rename the `Revlog::get_node_rev` method to `rev_from_node`

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This better describes the input and outputs of this method. Also rewrite the doc-comment, which seemed to have been left from copy-paste of another

D11414: rust: Make private the `index` field of the `Revlog` struct

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY To replace the previous use of this field from another module, add a `node_from_rev` method. This is the same method that already existed on `Changelog`.

D11416: rust: Rename get_node methods to data_for_node, get_rev to data_for_rev

2021-09-15 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY These are respective methods of Changelog, Manifestlog, and Filelog; three Rust structs that that wrap a Revlog struct. This rename clarifies that node

D11419: dirstate: make dirstatemap.set_untracked deal with added file

2021-09-15 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This merge dropfile in set_untracked. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11419 AFFECTED FILES

D11421: dirstate: introduce a `set_clean` method on dirstate's map and items

2021-09-15 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This method is the "reverse" of "set possibly dirty", and can be used to more accurately other call that the dirstate was making. It is currently heavily

D11420: dirstate: extract the logic to check file/dirname collision when adding a file

2021-09-15 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/D11420 AFFECTED FILES mercurial/dirstate.py CHANGE DETAILS diff --git

D11417: dirstate: move the copymap drop inside dropfile

2021-09-15 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Since the copymap is part of the dirstatemap it make more sense for the dirstatemap to manage it directly. This is part of a generic effort to move

D11418: dirstate: remove some usage of `_drop`

2021-09-15 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 a step toward being able to remove the `_drop` method on `dirstate`. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

[Bug 6591] New: test-clone-uncompressed.t: test failure

2021-09-15 Thread mercurial-bugs
https://bz.mercurial-scm.org/show_bug.cgi?id=6591 Bug ID: 6591 Summary: test-clone-uncompressed.t: test failure Product: Mercurial Version: 5.9.1 Hardware: All OS: NetBSD Status: UNCONFIRMED Severity: bug