[Updated] D11377: rhg: add support for calling `rhg cat` without a revision

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Wed Sep 8 10:27:59 UTC 2021


Alphare added inline comments.

INLINE COMMENTS

> SimonSapin wrote in cat.rs:63
> What should happen when p1 is null? (Such as in a new empty repository.) Is this case covered by tests?

> What should happen when p1 is null? (Such as in a new empty repository.) Is this case covered by tests?

If `p1` is `nullrev`, it's the same path as any other revision, but if the dirstate does not exist, then it's an abort in the same way as `hg` does it. Should I add a testcase in `test-cat.t` or somewhere similar?

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11377/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11377

To: Alphare, #hg-reviewers
Cc: SimonSapin, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210908/4fae911a/attachment-0002.html>


More information about the Mercurial-patches mailing list