mercurial@48284: 39 new changesets (7 on stable)
39 new changesets (7 on stable) in mercurial: https://www.mercurial-scm.org/repo/hg/rev/2f7caef017d9 changeset: 48246:2f7caef017d9 parent: 48244:b56858d85a7b user:Raphaël Gomès date:Mon Oct 18 10:14:44 2021 +0200 summary: fix: appease pyflakes and make unused variables more obvious https://www.mercurial-scm.org/repo/hg/rev/c62e4397eb28 changeset: 48247:c62e4397eb28 user:Martin von Zweigbergk date:Thu Oct 14 10:58:39 2021 -0700 summary: copy: recommend `--at-rev .` if target was added in parent commit https://www.mercurial-scm.org/repo/hg/rev/7f23a472068f changeset: 48248:7f23a472068f user:Raphaël Gomès date:Fri Aug 27 14:40:09 2021 +0200 summary: pyoxidizer: default to a meaningless release instead of hardcoding 5.8 https://www.mercurial-scm.org/repo/hg/rev/e9faae0f445c changeset: 48249:e9faae0f445c user:Arseniy Alekseyev date:Tue Oct 19 10:52:13 2021 +0100 summary: rhg: simplify split_metadata https://www.mercurial-scm.org/repo/hg/rev/1730b2fceaa1 changeset: 48250:1730b2fceaa1 user:Simon Sapin date:Fri Oct 15 16:12:00 2021 +0200 summary: dirstate-v2: adds a flag to mark a file as modified https://www.mercurial-scm.org/repo/hg/rev/dfc5a505ddc5 changeset: 48251:dfc5a505ddc5 user:Pierre-Yves David date:Fri Oct 15 16:33:19 2021 +0200 summary: dirstate-v2: adds two flag to track the presence of some unrecorded files https://www.mercurial-scm.org/repo/hg/rev/602c8e8411f5 changeset: 48252:602c8e8411f5 user:Pierre-Yves David date:Mon Oct 18 20:02:15 2021 +0200 summary: dirstate: add a concept of "fallback" flags to dirstate item https://www.mercurial-scm.org/repo/hg/rev/948570aa7630 changeset: 48253:948570aa7630 user:Pierre-Yves David date:Mon Oct 18 20:02:05 2021 +0200 summary: dirstate: make DirstateItem constructor accept fallback value https://www.mercurial-scm.org/repo/hg/rev/b874e8d81a98 changeset: 48254:b874e8d81a98 user:Pierre-Yves David date:Mon Oct 18 10:56:54 2021 +0200 summary: dirstate-v2: preserve the fallback values on disk https://www.mercurial-scm.org/repo/hg/rev/8c34edb1ad10 changeset: 48255:8c34edb1ad10 user:Raphaël Gomès date:Tue Oct 19 19:04:11 2021 +0200 summary: backout: backed out changeset 6edc8800dbc3 https://www.mercurial-scm.org/repo/hg/rev/56d037d07395 changeset: 48256:56d037d07395 user:Raphaël Gomès date:Tue Oct 19 19:03:39 2021 +0200 summary: backout: backed out changeset 2f2107c01dee https://www.mercurial-scm.org/repo/hg/rev/f45d35950db6 changeset: 48257:f45d35950db6 user:Simon Sapin date:Mon Oct 18 19:02:40 2021 +0200 summary: dirstate: rename a `very_likely_equal` method to `likely_equal` https://www.mercurial-scm.org/repo/hg/rev/c591944f42c1 changeset: 48258:c591944f42c1 user:Pierre-Yves David date:Tue Oct 19 22:14:48 2021 +0200 summary: dirstate: align Rust function name to `need_delay` https://www.mercurial-scm.org/repo/hg/rev/84f6b0c41b90 changeset: 48259:84f6b0c41b90 user:Simon Sapin date:Tue Oct 19 21:03:13 2021 +0200 summary: rust: remove now-unused DirstateEntry::clear_ambiguous_mtime method https://www.mercurial-scm.org/repo/hg/rev/269ff8978086 changeset: 48260:269ff8978086 user:Simon Sapin date:Mon Oct 18 11:23:07 2021 +0200 summary: dirstate: store mtimes with nanosecond precision in memory https://www.mercurial-scm.org/repo/hg/rev/9205d9be8b41 changeset: 48261:9205d9be8b41 user:Pierre-Yves David date:Tue Oct 19 22:04:14 2021 +0200 summary: dirstate-v2: add a new MTIME_SECOND_AMBIGUOUS flags https://www.mercurial-scm.org/repo/hg/rev/68bb472aee9c changeset: 48262:68bb472aee9c user:Simon Sapin date:Thu Oct 14 13:54:39 2021 +0200 summary: dirstate: ignore sub-second component when either is zero in mtime https://www.mercurial-scm.org/repo/hg/rev/83d0bd45b662 changeset: 48263:83d0bd45b662 user:Simon Sapin date:Wed Oct 13 15:58:14 2021 +0200 summary: dirstate-v2: actually use sub-second mtime precision https://www.mercurial-scm.org/repo/hg/rev/bb240915f69f changeset: 48264:bb240915f69f user:Pierre-Yves David date:Tue Oct 19 18:18:05 2021 +0200 summary: dirstate-v2: adjust the meaning of directory flags https://www.mercurial-scm.org/repo/hg/rev/3861e3f6ad54 changeset: 48265:3861e3f6ad54 user:Pierre-Yves David date:Tue Oct 19 20:14:17 2021 +0200 summary: dirstate-v2: read the fallback value in Rust https://www.mercurial-scm.org/repo/hg/rev/749946b6a641 changeset: 48266:749946b6a641 user:Pierre-Yves David date:Wed Oct 20 00:21:41 2021 +0200 summary: dirstate-v2: reorder flag to group related one together https://www.mercurial-scm.org/repo/hg/rev/c900d962e38b changeset: 482
mercurial@48287: 3 new changesets (3 on stable)
3 new changesets (3 on stable) in mercurial: https://www.mercurial-scm.org/repo/hg/rev/6ee0244fc1cf changeset: 48285:6ee0244fc1cf branch: stable tag: 5.9.3 parent: 48276:f3e218ae3fd9 user:Raphaël Gomès date:Mon Oct 25 17:57:01 2021 +0200 summary: relnotes: update release notes for upcoming 5.9.3 https://www.mercurial-scm.org/repo/hg/rev/958a10da92bf changeset: 48286:958a10da92bf branch: stable user:Pulkit Goyal <7895pul...@gmail.com> date:Tue Oct 26 18:53:51 2021 +0530 summary: Added tag 5.9.3 for changeset 6ee0244fc1cf https://www.mercurial-scm.org/repo/hg/rev/6ca72719b60b changeset: 48287:6ca72719b60b branch: stable tag: tip user:Pulkit Goyal <7895pul...@gmail.com> date:Tue Oct 26 18:53:58 2021 +0530 summary: Added signature for changeset 6ee0244fc1cf -- Repository URL: https://www.mercurial-scm.org/repo/hg ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
mercurial-devel | Failed pipeline for branch/default | 25026c59
Pipeline #28295 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: 25026c59 ( https://foss.heptapod.net/mercurial/mercurial-devel/-/commit/25026c5944d041486727452016df5762279c09dc ) Commit Message: merge: with stable Commit Author: Augie Fackler Pipeline #28295 ( https://foss.heptapod.net/mercurial/mercurial-devel/-/pipelines/28295 ) triggered by Administrator ( https://foss.heptapod.net/root ) had 2 failed jobs. Job #258071 ( https://foss.heptapod.net/mercurial/mercurial-devel/-/jobs/258071/raw ) Stage: tests Name: test-py3-chg Job #258068 ( https://foss.heptapod.net/mercurial/mercurial-devel/-/jobs/258068/raw ) Stage: tests Name: test-py3-rust -- You're receiving this email because of your account on foss.heptapod.net. ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D11721: rhg: more efficient `HgPath::join`
aalekseyev created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This commit makes `HgPath::join` slightly more efficient by avoiding one copy. It also avoids a particularly inefficient (quadratic) use of `HgPath::join` by using a new mutating function `HgPathBuf::push` instead. The name for `HgPath::push` is chosen by analogy to `PathBuf::push`. REPOSITORY rHG Mercurial BRANCH stable REVISION DETAIL https://phab.mercurial-scm.org/D11721 AFFECTED FILES rust/hg-core/src/filepatterns.rs rust/hg-core/src/matchers.rs rust/hg-core/src/utils/hg_path.rs CHANGE DETAILS diff --git a/rust/hg-core/src/utils/hg_path.rs b/rust/hg-core/src/utils/hg_path.rs --- a/rust/hg-core/src/utils/hg_path.rs +++ b/rust/hg-core/src/utils/hg_path.rs @@ -220,13 +220,11 @@ ), } } -pub fn join>(&self, other: &T) -> HgPathBuf { -let mut inner = self.inner.to_owned(); -if !inner.is_empty() && inner.last() != Some(&b'/') { -inner.push(b'/'); -} -inner.extend(other.as_ref().bytes()); -HgPathBuf::from_bytes(&inner) + +pub fn join(&self, path: &HgPath) -> HgPathBuf { +let mut buf = self.to_owned(); +buf.push(path); +buf } pub fn components(&self) -> impl Iterator { @@ -405,7 +403,15 @@ pub fn new() -> Self { Default::default() } -pub fn push(&mut self, byte: u8) { + +pub fn push>(&mut self, other: &T) -> () { +if !self.inner.is_empty() && self.inner.last() != Some(&b'/') { +self.inner.push(b'/'); +} +self.inner.extend(other.as_ref().bytes()) +} + +pub fn push_byte(&mut self, byte: u8) { self.inner.push(byte); } pub fn from_bytes(s: &[u8]) -> HgPathBuf { diff --git a/rust/hg-core/src/matchers.rs b/rust/hg-core/src/matchers.rs --- a/rust/hg-core/src/matchers.rs +++ b/rust/hg-core/src/matchers.rs @@ -402,8 +402,8 @@ } root.push(HgPathBuf::from_bytes(p)); } -let buf = -root.iter().fold(HgPathBuf::new(), |acc, r| acc.join(r)); +let mut buf = HgPathBuf::new(); +root.iter().fold((), |(), r| buf.push(r)); roots.push(buf); } PatternSyntax::Path | PatternSyntax::RelPath => { diff --git a/rust/hg-core/src/filepatterns.rs b/rust/hg-core/src/filepatterns.rs --- a/rust/hg-core/src/filepatterns.rs +++ b/rust/hg-core/src/filepatterns.rs @@ -536,7 +536,7 @@ Ok(Self { prefix: path_to_hg_path_buf(prefix).and_then(|mut p| { if !p.is_empty() { -p.push(b'/'); +p.push_byte(b'/'); } Ok(p) })?, To: aalekseyev, #hg-reviewers Cc: mercurial-patches, mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
mercurial@48288: new changeset
New changeset in mercurial: https://www.mercurial-scm.org/repo/hg/rev/4216f5561c3b changeset: 48288:4216f5561c3b bookmark:@ tag: tip parent: 48284:9de0823705b4 parent: 48287:6ca72719b60b user:Augie Fackler date:Tue Oct 26 10:23:14 2021 -0400 summary: merge: with stable -- Repository URL: https://www.mercurial-scm.org/repo/hg ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel