sapling/eden/scm/tests/test-log-unicode.t
Jun Wu 7947c378c4 context: make ctx.pareents() support >= 2 parents
Summary:
Do not assume `changelog.parents` returns 2 items.

This changes the behavior for root commits. `parents()` used to return
`[repo[nullid]]`, now it returns `[]`.

Reviewed By: andll

Differential Revision: D30784684

fbshipit-source-id: 73f58c85457391fb74b96b88dc4dcb69a25e81ac
2021-09-08 16:19:10 -07:00

27 lines
585 B
Raku
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#chg-compatible
$ hg init a
$ cd a
$ echo AA > A
$ hg commit -qAm "unicode quote: "
$ hg log -Tjson --debug
[
{
"rev": 0,
"node": "86378053da0a233e560e42ef149017c0ae7a7e4f",
"branch": "default",
"phase": "draft",
"user": "test",
"date": [0, 0],
"desc": "unicode quote: \xe2\x80\x99", (esc) (?)
"desc": "unicode quote: \u2019", (?)
"bookmarks": [],
"parents": [],
"manifest": "e014a281af7c5932257f42933049e389b86dc42e",
"extra": {"branch": "default"},
"modified": [],
"added": ["A"],
"removed": []
}
]