Mercurial > hg
comparison tests/test-log.t @ 24603:e74f819e9160
jsonchangeset: set manifest node to "null" for workingctx
Unlike changeset_printer, it does not hide the manifest field because JSON
output will be parsed by machine where explicit "null" will be more useful
than nothing.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 14 Mar 2015 20:16:35 +0900 |
parents | 201caa10536b |
children | 517763f87141 |
comparison
equal
deleted
inserted
replaced
24602:201caa10536b | 24603:e74f819e9160 |
---|---|
1664 "rev": null, | 1664 "rev": null, |
1665 "node": null | 1665 "node": null |
1666 } | 1666 } |
1667 ] | 1667 ] |
1668 | 1668 |
1669 $ hg log -r 'wdir()' -Tjson --debug | |
1670 [ | |
1671 { | |
1672 "rev": null, | |
1673 "node": null, | |
1674 "branch": "default", | |
1675 "phase": "draft", | |
1676 "user": "test", | |
1677 "date": [*, 0], (glob) | |
1678 "desc": "", | |
1679 "bookmarks": [], | |
1680 "tags": ["tip"], | |
1681 "parents": ["65624cd9070a035fa7191a54f2b8af39f16b0c08"], | |
1682 "manifest": null, | |
1683 "extra": {"branch": "default"}, | |
1684 "modified": [], | |
1685 "added": [], | |
1686 "removed": [] | |
1687 } | |
1688 ] | |
1689 | |
1669 Check that adding an arbitrary name shows up in log automatically | 1690 Check that adding an arbitrary name shows up in log automatically |
1670 | 1691 |
1671 $ cat > ../names.py <<EOF | 1692 $ cat > ../names.py <<EOF |
1672 > """A small extension to test adding arbitrary names to a repo""" | 1693 > """A small extension to test adding arbitrary names to a repo""" |
1673 > from mercurial.namespaces import namespace | 1694 > from mercurial.namespaces import namespace |