Article View: mozilla.dev.version-control
Article #1Re: Mercurial 4.8 Developer Sprint Meetup
From: Jonathan Watt
Date: Mon, 19 Nov 2018 14:45
Date: Mon, 19 Nov 2018 14:45
140 lines
11977 bytes
11977 bytes
No questions, but I wanted to say that I appreciate these updates and the work
that's been put into making Mercurial awesome. I moved away to Git for a while
but Evolution and other improvements brought me back. I'm now also very much
appreciating `hg absorb`!
-Jonathan
On 13/11/2018 18:24, Gregory Szorc wrote:
> Connor Sheehan and I represented Mozilla at the Mercurial 4.8 Developer
> Meetup (or "Sprint") in Stockholm, Sweden on October 12-14. This email is a
> summary of that meetup. Topics are covered in no particular order. More
> info about the sprint and a link to the raw notes can be found at
> https://www.mercurial-scm.org/wiki/4.8sprint.
>
> The sprints can typically be divided into talks/discussions and
> hacking/coding.
>
> On the hacking side, a lot of effort was put into Python 3 porting and
> Oxidation/Rust.
>
> Large areas of Mercurial are now Python 3 compatible. Mercurial now appears
> to be in the long tail of Python 3 porting work. Most day-to-day commands
> seem to work. An alpha or possibly beta quality Python 3 release in 2019H1
> is likely.
>
> A few exciting things have happened with Rust and Mercurial recently!
>
> First, a port of the `chg` program from C to Rust is well underway. The
> `chg` program is a drop-in replacement for the `hg` executable that spawns
> a persistent Mercurial/Python process then connects to it over a pipe to
> run commands. This avoids startup overhead in Python processes. The Rust
> port is nearly feature complete. Fun fact: when a mostly straight port of
> the C code to Rust was performed, the Rust compiler actually flushed out a
> few bugs in the C code! I think it's crazy (in a good way) that "sprinkling
> Rust over your code base" can tease out bugs like that!
>
> Second, the first Rust-code-called-from-Python was landed in the Mercurial
> repository! This was a big step because it required us to cross a number of
> bridges the first time, including how to integrate Rust into the build
> process. Things are still evolving here. But a lot of the initial hurdles
> are behind us and it sounds like there is general consensus on how to move
> forward with more formal/stable Rust integration into Mercurial. The Rust
> code is "shipping" in Mercurial 4.8, but it isn't enabled by default.
> Hopefully we'll get it enabled by default (at least in some Mercurial
> distributions) in 2019.
>
> During the sprint, Google upstreamed their patches overhauling the help
> system. If you run `hg help` in Mercurial 4.8, help topics are grouped by
> category, hopefully making it a lot easier to find what you are looking for.
>
> Speaking of Google, their Mercurial rollout on the massive Google monorepo
> continues. Apparently their users are *very* pleased with Mercurial - so
> much so that they initially thought their user sentiment numbers were wrong
> because they were so high! Google's contribution approach with Mercurial is
> to upstream as many of their modifications and custom extensions as
> possible: they seem to want to run a vanilla Mercurial out-of-the-box as
> possible. Their feature contributions so far have been very well received
> upstream and they've been contributing a number of performance improvements
> as well. Their contributions should translate to a better Mercurial
> experience for all.
>
> There was a long discussion about a generic undo/rewind functionality for
> Mercurial. This is something the 3rd party evolve extension is starting to
> dabble in. It's a hard technical problem. But it is a commonly requested
> feature ("I want to go back to the state of my repo/patches at X"). Look
> for the evolve extension to start landing some features in this space.
>
> There was another big discussion about how to handle obsolescence markers /
> changeset visibility and exchange of this metadata. This has been a
> long-running discussion because there are some entrenched opinions that are
> incompatible with each other. There was a decision to introduce a new
> "internal" phase to be used for changeset visibility instead of using
> obsolescence markers. I'll spare the details, but this will allow
> strip-based history rewrites in the default Mercurial install to be a thing
> of the past. Strip-based history rewriting is extremely slow on large
> repositories (like Firefox) and is a big reason why the evolve extension
> makes operations on Firefox repos much faster. The goal is to transition to
> the new mode in Mercurial 4.9.
>
> Octobus gave a presentation about integrating Mercurial into GitLab.
> Apparently it is closer to reality than one may realize! Read more at
> https://octobus.net/blog/2018-09-18-heptapod-announce.html.
>
> There was some discussion about turning on ui.tweakdefaults by default.
> This config option is a meta config option that activates a lot of modern
> and useful Mercurial features. It isn't on by default for backwards
> compatibility. This discussion stemmed from a larger discussion on "making
> the default install more useful by default." The answer to that issue is
> apparently "put useful things behind tweakdefaults first."
>
> There was talk of introducing a more unified way to programmatically carry
> out complex history rewriting operations. Essentially, a lot of extensions
> and 3rd party tools (like code review submission tools) want to perform
> rewriting operations programmatically. Today, they must author an extension
> (fast to run, slow to implement/maintain) or invoke N `hg` commands (slow
> to run, fast to implement/maintain). The idea was to introduce some kind of
> "protocol" to perform complex history rewriting operations. Apparently
> https://www.mercurial-scm.org/wiki/PlanHistoryRewritePlan exists for this
> but is vaporware. People seemed to want it. But it is a complex technical
> problem and there is no obvious party willing to implement at this time.
> However, a good first step is to consolidate all the history rewriting APIs
> into core Mercurial (away from extensions) and there is some work planned
> there.
>
> There was talk of changing Mercurial's time-based release plan to avoid a
> long feature freeze at the end of each 3 month release cycle. As an
> experiment, there was no feature freeze after the 4.8 RC was released and
> numerous patches for 4.9 landed. I don't think there's been a formal
> discussion around the effects that had.
>
> Octobus is doing some interesting things with computing "stable ranges" of
> DAG segments to facilitate groupings for data transfer. By doing this,
> client-server interaction can be optimized to reduce time to discover
> "missing" data and caching servers can yield higher cache hit rates. A very
> promising area for future data exchange efficiency wins.
>
> On the project governance front, there was a discussion about establishing
> a code of conduct and procedures for resolving code of conduct issues. The
> general consensus is that the project wants to establish a code of conduct.
> However, no decisions about specifics were made because we wanted the
> discussion to occur in the open on a mailing list instead of in a room with
> the few people who attended the sprint in person.
>
> There was a discussion on improving the website and user documentation for
> Mercurial. I think everyone recognizes the potential for improvements here.
> One significant project contributor is willing to mentor contributions to
> these areas.
>
> Finally, I gave a presentation on the work I'm doing to improve the
> Mercurial wire protocol and local storage layers. I'll spare the details
> for another post. But the slides from my presentation are available at
> https://docs.google.com/presentation/d/1DltJOrFndBvVuFDvMaqe9LHfJqErbynEcXs3si3-72k/edit?usp=sharing
> and much can be learned by reading them.
>
> And this is only a slice of what was discussed and hacked on.
>
> If you have any questions, hopefully Connor or I can answer them.
>
> Gregory
>
Technical Details
Message-ID:
<mailman.433.1542638764.1182.dev-version-control@lists.mozilla.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf2.newsdeef.eu!news.usenet.farm!..!..!not-for-mailReferences:
<CAJTgH0mhtdk-6QmFmmdtJ638H+xacYoBkbKcKs3hVu2KAfk0zQ@mail.gmail.com> <mailman.335.1542133532.1183.dev-version-control@lists.mozilla.org> <aaa87a9d-c419-e52b-85b6-9db56326ee11@jwatt.org>Show Full Headers
Complete Article Headers
Message-ID: <mailman.433.1542638764.1182.dev-version-control@lists.mozilla.org> Subject: Re: Mercurial 4.8 Developer Sprint Meetup Date: Mon, 19 Nov 2018 14:45:59 +0000 From: Jonathan Watt <jwatt@jwatt.org> References: <CAJTgH0mhtdk-6QmFmmdtJ638H+xacYoBkbKcKs3hVu2KAfk0zQ@mail.gmail.com> <mailman.335.1542133532.1183.dev-version-control@lists.mozilla.org> <aaa87a9d-c419-e52b-85b6-9db56326ee11@jwatt.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf2.newsdeef.eu!news.usenet.farm!..!..!not-for-mail NNTP-Posting-Date: Mon, 19 Nov 2018 08:46:04 -0600 Return-Path: <poster@giganews.com> X-Original-To: mozilla-dev-version-control@lists.mozilla.org Delivered-To: mozilla-dev-version-control@lists.mozilla.org X-Quarantine-ID: <hmd8G74lWjLm> X-Virus-Scanned: amavisd-new at mozilla.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "To" X-Spam-Flag: NO X-Spam-Score: -0.049 X-Spam-Status: No, score=-0.049 tagged_above=-999 required=5 tests=[BAYES_00=-0.05, HEADER_FROM_DIFFERENT_DOMAINS=0.001] autolearn=ham autolearn_force=no Received-SPF: pass (giganews.com: Sender is authorized to use 'poster@giganews.com' in 'mfrom' identity (mechanism 'include:smtp.phmgmt.com' matched)) receiver=mailman2.mail.mdc2.mozilla.com; identity=mailfrom; envelope-from="poster@giganews.com"; helo=mailstar.serv1.aus.datafoundry.com; client-ip=209.99.125.34 Cc: Connor Sheehan <cosheehan@mozilla.com> X-DF-Seen-By: ms User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <mailman.335.1542133532.1183.dev-version-control@lists.mozilla.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AuthenticatedUsername: NoAuthUser X-DMCA-Complaints-To: abuse@mozilla.org X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-BeenThere: dev-version-control@lists.mozilla.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussion of version control <dev-version-control.lists.mozilla.org> List-Unsubscribe: <https://lists.mozilla.org/options/dev-version-control>, <mailto:dev-version-control-request@lists.mozilla.org?subject=unsubscribe> List-Archive: <http://lists.mozilla.org/pipermail/dev-version-control/> List-Post: <mailto:dev-version-control@lists.mozilla.org> List-Help: <mailto:dev-version-control-request@lists.mozilla.org?subject=help> List-Subscribe: <https://lists.mozilla.org/listinfo/dev-version-control>, <mailto:dev-version-control-request@lists.mozilla.org?subject=subscribe> Approved: dev-version-control@lists.mozilla.org Newsgroups: mozilla.dev.version-control X-Mailman-Original-Message-ID: <aaa87a9d-c419-e52b-85b6-9db56326ee11@jwatt.org> X-Mailman-Original-References: <CAJTgH0mhtdk-6QmFmmdtJ638H+xacYoBkbKcKs3hVu2KAfk0zQ@mail.gmail.com> <mailman.335.1542133532.1183.dev-version-control@lists.mozilla.org> To: Gregory Szorc <gps@mozilla.com> X-Original-To: mozilla-dev-version-control@lists.mozilla.org Lines: 141 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 63.245.210.105 X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-NKSw34NkY6Y2qYMdc7SMvVqyJ/Hm1pOmpkQK/6UvcfbTUlQ/1ixi3gWyAxEe+UsmiGSPzXNK1l42s2w!IvHhHYVcFR2U7m8p5gsat2Ostpoq67rEDtM5Nuz1bzIG/OUwo7aByKx/NPGBOiu8cvBvfG/ugw7d!72+C/YExprEwTe8Uo5YQa2Ityc3C+NeM0XqYP3XKsQ== X-Complaints-To: abuse@mozilla.org X-DMCA-Complaints-To: abuse@mozilla.org X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40