[PATCH] discovery: stop direct use of attribute of partialdiscovery

Pulkit Goyal 7895pulkit at gmail.com
Fri Apr 12 08:30:32 EDT 2019


On Thu, Apr 11, 2019 at 9:18 PM Georges Racinet <georges.racinet at octobus.net>
wrote:

> # HG changeset patch
> # User Georges Racinet <georges.racinet at octobus.net>
> # Date 1554999007 -7200
> #      Thu Apr 11 18:10:07 2019 +0200
> # Node ID 44c5e57b870d6ca9e93a5ff289caf3e0c0e90853
> # Parent  509a0477b3a6e9f1ea0fe32bfb028c256aada7fa
> # EXP-Topic rust-discovery
> discovery: stop direct use of attribute of partialdiscovery
>
> Instead of accessing `undecided` directly for ui display purposes,
> we introduce a `stats()` method that could be extended in the future with
> more interesting information.
>
> This is in preparation for a forthcoming Rust version of this object.
> Indeed, attributes and furthermore properties are a bit complicated for
> classes in native code.
>
> We could go further and rename `undecided` to mark it private, but
> `_undecided`
> is already taken as support for `_undecided` lazyness.
>

Queued this, many thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20190412/65e0491f/attachment.html>


More information about the Mercurial-devel mailing list