HomePhabricator

rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`

Authored by acezar.

Description

rhg: add RootCommand using hg-core FindRoot operation to prepare hg root

The println macro is not used to avoid string usage.
Dealing only with bytes allows us to be compatible with any encoding
and not just UTF8.

Later on, format macro will be made to have more readable code.

Differential Revision: https://phab.mercurial-scm.org/D8612

Details

Committed
acezarJun 5 2020, 3:01 AM
Differential Revision
D8612: rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`
Parents
rHGdf3660cc60f5: merge with stable
Branches
Unknown
Tags
Unknown

Event Timeline

acezar added a subscriber: marmoute.Mon, Jul 6, 5:30 AM

@mjacob yes, It did break the tests. I had to rework on it at different levels with the help of @marmoute. I have sent patches today: D8680, D8681, D8682. I did not take your patch since I already had that fixed locally but thanks for your proposal. And sorry for breaking the tests.

mjacob added a comment.Mon, Jul 6, 7:53 AM

@acezar No problem! Thanks for taking take of the failures. In the meantime, Yuya rebased the other changesets, so that there’s another head now: https://www.mercurial-scm.org/pipermail/mercurial-devel/2020-July/142306.html