[PATCH 1 of 2] rust-dirstate: add helper to iterate ancestor paths

Pulkit Goyal 7895pulkit at gmail.com
Wed Jul 10 09:24:35 EDT 2019


On Sun, Jun 30, 2019 at 2:16 PM Yuya Nishihara <yuya at tcha.org> wrote:

> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1561887163 -32400
> #      Sun Jun 30 18:32:43 2019 +0900
> # Node ID 72ab74c704053b2212b874a902574fedadad4252
> # Parent  904e0da2e195d2a29977ceccdd25480233c34d7a
> rust-dirstate: add helper to iterate ancestor paths
>
> This is modeled after std::path::Path::ancestors().
>
> find_dirs(b"") yields b"" because Mercurial's util.finddirs() works in that
> way, and the test case for DirsMultiset expects such behavior.
>

Queued this one, many thanks. The next one fails to apply on tip of default.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20190710/7410f12d/attachment.html>


More information about the Mercurial-devel mailing list