Mercurial > hg
comparison tests/test-command-template.t @ 37772:814151cd8c4a
logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
This is a bit slower than the original implementation, but I don't think
that would actually matter. It's still faster than full templating.
$ hg log -Tjson -r0:5000 --time > /dev/null
(orig) time: real 1.550 secs (user 1.500+0.000 sys 0.040+0.000)
(new) time: real 1.810 secs (user 1.740+0.000 sys 0.070+0.000)
cf.
$ hg log -Tdefault -r0:5000 --time > /dev/null
time: real 4.980 secs (user 4.850+0.000 sys 0.130+0.000)
$ hg log -r0:5000 --time > /dev/null
time: real 2.340 secs (user 2.220+0.000 sys 0.100+0.000)
$ hg log -r0:5000 -q --time > /dev/null
time: real 0.750 secs (user 0.670+0.000 sys 0.070+0.000)
The test output changes because keys are sorted alphabetically.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 13 Apr 2018 22:47:14 +0900 |
parents | 7b2955624777 |
children | 66dc9db6ed2c |
comparison
equal
deleted
inserted
replaced
37771:8c48a3c088a7 | 37772:814151cd8c4a |
---|---|
851 | 851 |
852 | 852 |
853 Test JSON style: | 853 Test JSON style: |
854 | 854 |
855 $ hg log -k nosuch -Tjson | 855 $ hg log -k nosuch -Tjson |
856 [] | 856 [ |
857 ] | |
857 | 858 |
858 $ hg log -qr . -Tjson | 859 $ hg log -qr . -Tjson |
859 [ | 860 [ |
860 { | 861 { |
861 "rev": 8, | 862 "node": "95c24699272ef57d062b8bccc32c878bf841784a", |
862 "node": "95c24699272ef57d062b8bccc32c878bf841784a" | 863 "rev": 8 |
863 } | 864 } |
864 ] | 865 ] |
865 | 866 |
866 $ hg log -vpr . -Tjson --stat | 867 $ hg log -vpr . -Tjson --stat |
867 [ | 868 [ |
868 { | 869 { |
869 "rev": 8, | 870 "bookmarks": [], |
870 "node": "95c24699272ef57d062b8bccc32c878bf841784a", | |
871 "branch": "default", | 871 "branch": "default", |
872 "phase": "draft", | |
873 "user": "test", | |
874 "date": [1577872860, 0], | 872 "date": [1577872860, 0], |
875 "desc": "third", | 873 "desc": "third", |
876 "bookmarks": [], | 874 "diff": "diff -r 29114dbae42b -r 95c24699272e fourth\n--- /dev/null\tThu Jan 01 00:00:00 1970 +0000\n+++ b/fourth\tWed Jan 01 10:01:00 2020 +0000\n@@ -0,0 +1,1 @@\n+second\ndiff -r 29114dbae42b -r 95c24699272e second\n--- a/second\tMon Jan 12 13:46:40 1970 +0000\n+++ /dev/null\tThu Jan 01 00:00:00 1970 +0000\n@@ -1,1 +0,0 @@\n-second\ndiff -r 29114dbae42b -r 95c24699272e third\n--- /dev/null\tThu Jan 01 00:00:00 1970 +0000\n+++ b/third\tWed Jan 01 10:01:00 2020 +0000\n@@ -0,0 +1,1 @@\n+third\n", |
875 "diffstat": " fourth | 1 +\n second | 1 -\n third | 1 +\n 3 files changed, 2 insertions(+), 1 deletions(-)\n", | |
876 "files": ["fourth", "second", "third"], | |
877 "node": "95c24699272ef57d062b8bccc32c878bf841784a", | |
878 "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"], | |
879 "phase": "draft", | |
880 "rev": 8, | |
877 "tags": ["tip"], | 881 "tags": ["tip"], |
878 "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"], | 882 "user": "test" |
879 "files": ["fourth", "second", "third"], | |
880 "diffstat": " fourth | 1 +\n second | 1 -\n third | 1 +\n 3 files changed, 2 insertions(+), 1 deletions(-)\n", | |
881 "diff": "diff -r 29114dbae42b -r 95c24699272e fourth\n--- /dev/null\tThu Jan 01 00:00:00 1970 +0000\n+++ b/fourth\tWed Jan 01 10:01:00 2020 +0000\n@@ -0,0 +1,1 @@\n+second\ndiff -r 29114dbae42b -r 95c24699272e second\n--- a/second\tMon Jan 12 13:46:40 1970 +0000\n+++ /dev/null\tThu Jan 01 00:00:00 1970 +0000\n@@ -1,1 +0,0 @@\n-second\ndiff -r 29114dbae42b -r 95c24699272e third\n--- /dev/null\tThu Jan 01 00:00:00 1970 +0000\n+++ b/third\tWed Jan 01 10:01:00 2020 +0000\n@@ -0,0 +1,1 @@\n+third\n" | |
882 } | 883 } |
883 ] | 884 ] |
884 | 885 |
885 honor --git but not format-breaking diffopts | 886 honor --git but not format-breaking diffopts |
886 $ hg --config diff.noprefix=True log --git -vpr . -Tjson | 887 $ hg --config diff.noprefix=True log --git -vpr . -Tjson |
887 [ | 888 [ |
888 { | 889 { |
889 "rev": 8, | 890 "bookmarks": [], |
890 "node": "95c24699272ef57d062b8bccc32c878bf841784a", | |
891 "branch": "default", | 891 "branch": "default", |
892 "phase": "draft", | |
893 "user": "test", | |
894 "date": [1577872860, 0], | 892 "date": [1577872860, 0], |
895 "desc": "third", | 893 "desc": "third", |
896 "bookmarks": [], | 894 "diff": "diff --git a/second b/fourth\nrename from second\nrename to fourth\ndiff --git a/third b/third\nnew file mode 100644\n--- /dev/null\n+++ b/third\n@@ -0,0 +1,1 @@\n+third\n", |
895 "files": ["fourth", "second", "third"], | |
896 "node": "95c24699272ef57d062b8bccc32c878bf841784a", | |
897 "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"], | |
898 "phase": "draft", | |
899 "rev": 8, | |
897 "tags": ["tip"], | 900 "tags": ["tip"], |
898 "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"], | 901 "user": "test" |
899 "files": ["fourth", "second", "third"], | |
900 "diff": "diff --git a/second b/fourth\nrename from second\nrename to fourth\ndiff --git a/third b/third\nnew file mode 100644\n--- /dev/null\n+++ b/third\n@@ -0,0 +1,1 @@\n+third\n" | |
901 } | 902 } |
902 ] | 903 ] |
903 | 904 |
904 $ hg log -T json | 905 $ hg log -T json |
905 [ | 906 [ |
906 { | 907 { |
907 "rev": 8, | 908 "bookmarks": [], |
908 "node": "95c24699272ef57d062b8bccc32c878bf841784a", | |
909 "branch": "default", | 909 "branch": "default", |
910 "phase": "draft", | |
911 "user": "test", | |
912 "date": [1577872860, 0], | 910 "date": [1577872860, 0], |
913 "desc": "third", | 911 "desc": "third", |
914 "bookmarks": [], | 912 "node": "95c24699272ef57d062b8bccc32c878bf841784a", |
913 "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"], | |
914 "phase": "draft", | |
915 "rev": 8, | |
915 "tags": ["tip"], | 916 "tags": ["tip"], |
916 "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"] | 917 "user": "test" |
917 }, | 918 }, |
918 { | 919 { |
919 "rev": 7, | 920 "bookmarks": [], |
920 "node": "29114dbae42b9f078cf2714dbe3a86bba8ec7453", | |
921 "branch": "default", | 921 "branch": "default", |
922 "phase": "draft", | |
923 "user": "User Name <user@hostname>", | |
924 "date": [1000000, 0], | 922 "date": [1000000, 0], |
925 "desc": "second", | 923 "desc": "second", |
926 "bookmarks": [], | 924 "node": "29114dbae42b9f078cf2714dbe3a86bba8ec7453", |
925 "parents": ["0000000000000000000000000000000000000000"], | |
926 "phase": "draft", | |
927 "rev": 7, | |
927 "tags": [], | 928 "tags": [], |
928 "parents": ["0000000000000000000000000000000000000000"] | 929 "user": "User Name <user@hostname>" |
929 }, | 930 }, |
930 { | 931 { |
931 "rev": 6, | 932 "bookmarks": [], |
932 "node": "d41e714fe50d9e4a5f11b4d595d543481b5f980b", | |
933 "branch": "default", | 933 "branch": "default", |
934 "phase": "draft", | |
935 "user": "person", | |
936 "date": [1500001, 0], | 934 "date": [1500001, 0], |
937 "desc": "merge", | 935 "desc": "merge", |
938 "bookmarks": [], | 936 "node": "d41e714fe50d9e4a5f11b4d595d543481b5f980b", |
937 "parents": ["13207e5a10d9fd28ec424934298e176197f2c67f", "bbe44766e73d5f11ed2177f1838de10c53ef3e74"], | |
938 "phase": "draft", | |
939 "rev": 6, | |
939 "tags": [], | 940 "tags": [], |
940 "parents": ["13207e5a10d9fd28ec424934298e176197f2c67f", "bbe44766e73d5f11ed2177f1838de10c53ef3e74"] | 941 "user": "person" |
941 }, | 942 }, |
942 { | 943 { |
943 "rev": 5, | 944 "bookmarks": [], |
944 "node": "13207e5a10d9fd28ec424934298e176197f2c67f", | |
945 "branch": "default", | 945 "branch": "default", |
946 "phase": "draft", | |
947 "user": "person", | |
948 "date": [1500000, 0], | 946 "date": [1500000, 0], |
949 "desc": "new head", | 947 "desc": "new head", |
950 "bookmarks": [], | 948 "node": "13207e5a10d9fd28ec424934298e176197f2c67f", |
949 "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"], | |
950 "phase": "draft", | |
951 "rev": 5, | |
951 "tags": [], | 952 "tags": [], |
952 "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"] | 953 "user": "person" |
953 }, | 954 }, |
954 { | 955 { |
955 "rev": 4, | 956 "bookmarks": [], |
956 "node": "bbe44766e73d5f11ed2177f1838de10c53ef3e74", | |
957 "branch": "foo", | 957 "branch": "foo", |
958 "phase": "draft", | |
959 "user": "person", | |
960 "date": [1400000, 0], | 958 "date": [1400000, 0], |
961 "desc": "new branch", | 959 "desc": "new branch", |
962 "bookmarks": [], | 960 "node": "bbe44766e73d5f11ed2177f1838de10c53ef3e74", |
961 "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"], | |
962 "phase": "draft", | |
963 "rev": 4, | |
963 "tags": [], | 964 "tags": [], |
964 "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"] | 965 "user": "person" |
965 }, | 966 }, |
966 { | 967 { |
967 "rev": 3, | 968 "bookmarks": [], |
968 "node": "10e46f2dcbf4823578cf180f33ecf0b957964c47", | |
969 "branch": "default", | 969 "branch": "default", |
970 "phase": "draft", | |
971 "user": "person", | |
972 "date": [1300000, 0], | 970 "date": [1300000, 0], |
973 "desc": "no user, no domain", | 971 "desc": "no user, no domain", |
974 "bookmarks": [], | 972 "node": "10e46f2dcbf4823578cf180f33ecf0b957964c47", |
973 "parents": ["97054abb4ab824450e9164180baf491ae0078465"], | |
974 "phase": "draft", | |
975 "rev": 3, | |
975 "tags": [], | 976 "tags": [], |
976 "parents": ["97054abb4ab824450e9164180baf491ae0078465"] | 977 "user": "person" |
977 }, | 978 }, |
978 { | 979 { |
979 "rev": 2, | 980 "bookmarks": [], |
980 "node": "97054abb4ab824450e9164180baf491ae0078465", | |
981 "branch": "default", | 981 "branch": "default", |
982 "phase": "draft", | |
983 "user": "other@place", | |
984 "date": [1200000, 0], | 982 "date": [1200000, 0], |
985 "desc": "no person", | 983 "desc": "no person", |
986 "bookmarks": [], | 984 "node": "97054abb4ab824450e9164180baf491ae0078465", |
985 "parents": ["b608e9d1a3f0273ccf70fb85fd6866b3482bf965"], | |
986 "phase": "draft", | |
987 "rev": 2, | |
987 "tags": [], | 988 "tags": [], |
988 "parents": ["b608e9d1a3f0273ccf70fb85fd6866b3482bf965"] | 989 "user": "other@place" |
989 }, | 990 }, |
990 { | 991 { |
991 "rev": 1, | 992 "bookmarks": [], |
992 "node": "b608e9d1a3f0273ccf70fb85fd6866b3482bf965", | |
993 "branch": "default", | 993 "branch": "default", |
994 "phase": "draft", | |
995 "user": "A. N. Other <other@place>", | |
996 "date": [1100000, 0], | 994 "date": [1100000, 0], |
997 "desc": "other 1\nother 2\n\nother 3", | 995 "desc": "other 1\nother 2\n\nother 3", |
998 "bookmarks": [], | 996 "node": "b608e9d1a3f0273ccf70fb85fd6866b3482bf965", |
997 "parents": ["1e4e1b8f71e05681d422154f5421e385fec3454f"], | |
998 "phase": "draft", | |
999 "rev": 1, | |
999 "tags": [], | 1000 "tags": [], |
1000 "parents": ["1e4e1b8f71e05681d422154f5421e385fec3454f"] | 1001 "user": "A. N. Other <other@place>" |
1001 }, | 1002 }, |
1002 { | 1003 { |
1003 "rev": 0, | 1004 "bookmarks": [], |
1004 "node": "1e4e1b8f71e05681d422154f5421e385fec3454f", | |
1005 "branch": "default", | 1005 "branch": "default", |
1006 "phase": "draft", | |
1007 "user": "User Name <user@hostname>", | |
1008 "date": [1000000, 0], | 1006 "date": [1000000, 0], |
1009 "desc": "line 1\nline 2", | 1007 "desc": "line 1\nline 2", |
1010 "bookmarks": [], | 1008 "node": "1e4e1b8f71e05681d422154f5421e385fec3454f", |
1009 "parents": ["0000000000000000000000000000000000000000"], | |
1010 "phase": "draft", | |
1011 "rev": 0, | |
1011 "tags": [], | 1012 "tags": [], |
1012 "parents": ["0000000000000000000000000000000000000000"] | 1013 "user": "User Name <user@hostname>" |
1013 } | 1014 } |
1014 ] | 1015 ] |
1015 | 1016 |
1016 $ hg heads -v -Tjson | 1017 $ hg heads -v -Tjson |
1017 [ | 1018 [ |
1018 { | 1019 { |
1019 "rev": 8, | 1020 "bookmarks": [], |
1020 "node": "95c24699272ef57d062b8bccc32c878bf841784a", | |
1021 "branch": "default", | 1021 "branch": "default", |
1022 "phase": "draft", | |
1023 "user": "test", | |
1024 "date": [1577872860, 0], | 1022 "date": [1577872860, 0], |
1025 "desc": "third", | 1023 "desc": "third", |
1026 "bookmarks": [], | 1024 "files": ["fourth", "second", "third"], |
1025 "node": "95c24699272ef57d062b8bccc32c878bf841784a", | |
1026 "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"], | |
1027 "phase": "draft", | |
1028 "rev": 8, | |
1027 "tags": ["tip"], | 1029 "tags": ["tip"], |
1028 "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"], | 1030 "user": "test" |
1029 "files": ["fourth", "second", "third"] | |
1030 }, | 1031 }, |
1031 { | 1032 { |
1032 "rev": 6, | 1033 "bookmarks": [], |
1033 "node": "d41e714fe50d9e4a5f11b4d595d543481b5f980b", | |
1034 "branch": "default", | 1034 "branch": "default", |
1035 "phase": "draft", | |
1036 "user": "person", | |
1037 "date": [1500001, 0], | 1035 "date": [1500001, 0], |
1038 "desc": "merge", | 1036 "desc": "merge", |
1039 "bookmarks": [], | 1037 "files": [], |
1038 "node": "d41e714fe50d9e4a5f11b4d595d543481b5f980b", | |
1039 "parents": ["13207e5a10d9fd28ec424934298e176197f2c67f", "bbe44766e73d5f11ed2177f1838de10c53ef3e74"], | |
1040 "phase": "draft", | |
1041 "rev": 6, | |
1040 "tags": [], | 1042 "tags": [], |
1041 "parents": ["13207e5a10d9fd28ec424934298e176197f2c67f", "bbe44766e73d5f11ed2177f1838de10c53ef3e74"], | 1043 "user": "person" |
1042 "files": [] | |
1043 }, | 1044 }, |
1044 { | 1045 { |
1045 "rev": 4, | 1046 "bookmarks": [], |
1046 "node": "bbe44766e73d5f11ed2177f1838de10c53ef3e74", | |
1047 "branch": "foo", | 1047 "branch": "foo", |
1048 "phase": "draft", | |
1049 "user": "person", | |
1050 "date": [1400000, 0], | 1048 "date": [1400000, 0], |
1051 "desc": "new branch", | 1049 "desc": "new branch", |
1052 "bookmarks": [], | 1050 "files": [], |
1051 "node": "bbe44766e73d5f11ed2177f1838de10c53ef3e74", | |
1052 "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"], | |
1053 "phase": "draft", | |
1054 "rev": 4, | |
1053 "tags": [], | 1055 "tags": [], |
1054 "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"], | 1056 "user": "person" |
1055 "files": [] | |
1056 } | 1057 } |
1057 ] | 1058 ] |
1058 | 1059 |
1059 $ hg log --debug -Tjson | 1060 $ hg log --debug -Tjson |
1060 [ | 1061 [ |
1061 { | 1062 { |
1062 "rev": 8, | 1063 "added": ["fourth", "third"], |
1063 "node": "95c24699272ef57d062b8bccc32c878bf841784a", | 1064 "bookmarks": [], |
1064 "branch": "default", | 1065 "branch": "default", |
1065 "phase": "draft", | |
1066 "user": "test", | |
1067 "date": [1577872860, 0], | 1066 "date": [1577872860, 0], |
1068 "desc": "third", | 1067 "desc": "third", |
1069 "bookmarks": [], | 1068 "extra": {"branch": "default"}, |
1069 "manifest": "94961b75a2da554b4df6fb599e5bfc7d48de0c64", | |
1070 "modified": [], | |
1071 "node": "95c24699272ef57d062b8bccc32c878bf841784a", | |
1072 "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"], | |
1073 "phase": "draft", | |
1074 "removed": ["second"], | |
1075 "rev": 8, | |
1070 "tags": ["tip"], | 1076 "tags": ["tip"], |
1071 "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"], | 1077 "user": "test" |
1072 "manifest": "94961b75a2da554b4df6fb599e5bfc7d48de0c64", | |
1073 "extra": {"branch": "default"}, | |
1074 "modified": [], | |
1075 "added": ["fourth", "third"], | |
1076 "removed": ["second"] | |
1077 }, | 1078 }, |
1078 { | 1079 { |
1079 "rev": 7, | 1080 "added": ["second"], |
1080 "node": "29114dbae42b9f078cf2714dbe3a86bba8ec7453", | 1081 "bookmarks": [], |
1081 "branch": "default", | 1082 "branch": "default", |
1082 "phase": "draft", | |
1083 "user": "User Name <user@hostname>", | |
1084 "date": [1000000, 0], | 1083 "date": [1000000, 0], |
1085 "desc": "second", | 1084 "desc": "second", |
1086 "bookmarks": [], | 1085 "extra": {"branch": "default"}, |
1086 "manifest": "f2dbc354b94e5ec0b4f10680ee0cee816101d0bf", | |
1087 "modified": [], | |
1088 "node": "29114dbae42b9f078cf2714dbe3a86bba8ec7453", | |
1089 "parents": ["0000000000000000000000000000000000000000"], | |
1090 "phase": "draft", | |
1091 "removed": [], | |
1092 "rev": 7, | |
1087 "tags": [], | 1093 "tags": [], |
1088 "parents": ["0000000000000000000000000000000000000000"], | 1094 "user": "User Name <user@hostname>" |
1089 "manifest": "f2dbc354b94e5ec0b4f10680ee0cee816101d0bf", | |
1090 "extra": {"branch": "default"}, | |
1091 "modified": [], | |
1092 "added": ["second"], | |
1093 "removed": [] | |
1094 }, | 1095 }, |
1095 { | 1096 { |
1096 "rev": 6, | 1097 "added": [], |
1097 "node": "d41e714fe50d9e4a5f11b4d595d543481b5f980b", | 1098 "bookmarks": [], |
1098 "branch": "default", | 1099 "branch": "default", |
1099 "phase": "draft", | |
1100 "user": "person", | |
1101 "date": [1500001, 0], | 1100 "date": [1500001, 0], |
1102 "desc": "merge", | 1101 "desc": "merge", |
1103 "bookmarks": [], | 1102 "extra": {"branch": "default"}, |
1103 "manifest": "4dc3def4f9b4c6e8de820f6ee74737f91e96a216", | |
1104 "modified": [], | |
1105 "node": "d41e714fe50d9e4a5f11b4d595d543481b5f980b", | |
1106 "parents": ["13207e5a10d9fd28ec424934298e176197f2c67f", "bbe44766e73d5f11ed2177f1838de10c53ef3e74"], | |
1107 "phase": "draft", | |
1108 "removed": [], | |
1109 "rev": 6, | |
1104 "tags": [], | 1110 "tags": [], |
1105 "parents": ["13207e5a10d9fd28ec424934298e176197f2c67f", "bbe44766e73d5f11ed2177f1838de10c53ef3e74"], | 1111 "user": "person" |
1106 "manifest": "4dc3def4f9b4c6e8de820f6ee74737f91e96a216", | |
1107 "extra": {"branch": "default"}, | |
1108 "modified": [], | |
1109 "added": [], | |
1110 "removed": [] | |
1111 }, | 1112 }, |
1112 { | 1113 { |
1113 "rev": 5, | 1114 "added": ["d"], |
1114 "node": "13207e5a10d9fd28ec424934298e176197f2c67f", | 1115 "bookmarks": [], |
1115 "branch": "default", | 1116 "branch": "default", |
1116 "phase": "draft", | |
1117 "user": "person", | |
1118 "date": [1500000, 0], | 1117 "date": [1500000, 0], |
1119 "desc": "new head", | 1118 "desc": "new head", |
1120 "bookmarks": [], | 1119 "extra": {"branch": "default"}, |
1120 "manifest": "4dc3def4f9b4c6e8de820f6ee74737f91e96a216", | |
1121 "modified": [], | |
1122 "node": "13207e5a10d9fd28ec424934298e176197f2c67f", | |
1123 "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"], | |
1124 "phase": "draft", | |
1125 "removed": [], | |
1126 "rev": 5, | |
1121 "tags": [], | 1127 "tags": [], |
1122 "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"], | 1128 "user": "person" |
1123 "manifest": "4dc3def4f9b4c6e8de820f6ee74737f91e96a216", | |
1124 "extra": {"branch": "default"}, | |
1125 "modified": [], | |
1126 "added": ["d"], | |
1127 "removed": [] | |
1128 }, | 1129 }, |
1129 { | 1130 { |
1130 "rev": 4, | 1131 "added": [], |
1131 "node": "bbe44766e73d5f11ed2177f1838de10c53ef3e74", | 1132 "bookmarks": [], |
1132 "branch": "foo", | 1133 "branch": "foo", |
1133 "phase": "draft", | |
1134 "user": "person", | |
1135 "date": [1400000, 0], | 1134 "date": [1400000, 0], |
1136 "desc": "new branch", | 1135 "desc": "new branch", |
1137 "bookmarks": [], | 1136 "extra": {"branch": "foo"}, |
1137 "manifest": "cb5a1327723bada42f117e4c55a303246eaf9ccc", | |
1138 "modified": [], | |
1139 "node": "bbe44766e73d5f11ed2177f1838de10c53ef3e74", | |
1140 "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"], | |
1141 "phase": "draft", | |
1142 "removed": [], | |
1143 "rev": 4, | |
1138 "tags": [], | 1144 "tags": [], |
1139 "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"], | 1145 "user": "person" |
1140 "manifest": "cb5a1327723bada42f117e4c55a303246eaf9ccc", | |
1141 "extra": {"branch": "foo"}, | |
1142 "modified": [], | |
1143 "added": [], | |
1144 "removed": [] | |
1145 }, | 1146 }, |
1146 { | 1147 { |
1147 "rev": 3, | 1148 "added": [], |
1148 "node": "10e46f2dcbf4823578cf180f33ecf0b957964c47", | 1149 "bookmarks": [], |
1149 "branch": "default", | 1150 "branch": "default", |
1150 "phase": "draft", | |
1151 "user": "person", | |
1152 "date": [1300000, 0], | 1151 "date": [1300000, 0], |
1153 "desc": "no user, no domain", | 1152 "desc": "no user, no domain", |
1154 "bookmarks": [], | 1153 "extra": {"branch": "default"}, |
1154 "manifest": "cb5a1327723bada42f117e4c55a303246eaf9ccc", | |
1155 "modified": ["c"], | |
1156 "node": "10e46f2dcbf4823578cf180f33ecf0b957964c47", | |
1157 "parents": ["97054abb4ab824450e9164180baf491ae0078465"], | |
1158 "phase": "draft", | |
1159 "removed": [], | |
1160 "rev": 3, | |
1155 "tags": [], | 1161 "tags": [], |
1156 "parents": ["97054abb4ab824450e9164180baf491ae0078465"], | 1162 "user": "person" |
1157 "manifest": "cb5a1327723bada42f117e4c55a303246eaf9ccc", | |
1158 "extra": {"branch": "default"}, | |
1159 "modified": ["c"], | |
1160 "added": [], | |
1161 "removed": [] | |
1162 }, | 1163 }, |
1163 { | 1164 { |
1164 "rev": 2, | 1165 "added": ["c"], |
1165 "node": "97054abb4ab824450e9164180baf491ae0078465", | 1166 "bookmarks": [], |
1166 "branch": "default", | 1167 "branch": "default", |
1167 "phase": "draft", | |
1168 "user": "other@place", | |
1169 "date": [1200000, 0], | 1168 "date": [1200000, 0], |
1170 "desc": "no person", | 1169 "desc": "no person", |
1171 "bookmarks": [], | 1170 "extra": {"branch": "default"}, |
1171 "manifest": "6e0e82995c35d0d57a52aca8da4e56139e06b4b1", | |
1172 "modified": [], | |
1173 "node": "97054abb4ab824450e9164180baf491ae0078465", | |
1174 "parents": ["b608e9d1a3f0273ccf70fb85fd6866b3482bf965"], | |
1175 "phase": "draft", | |
1176 "removed": [], | |
1177 "rev": 2, | |
1172 "tags": [], | 1178 "tags": [], |
1173 "parents": ["b608e9d1a3f0273ccf70fb85fd6866b3482bf965"], | 1179 "user": "other@place" |
1174 "manifest": "6e0e82995c35d0d57a52aca8da4e56139e06b4b1", | |
1175 "extra": {"branch": "default"}, | |
1176 "modified": [], | |
1177 "added": ["c"], | |
1178 "removed": [] | |
1179 }, | 1180 }, |
1180 { | 1181 { |
1181 "rev": 1, | 1182 "added": ["b"], |
1182 "node": "b608e9d1a3f0273ccf70fb85fd6866b3482bf965", | 1183 "bookmarks": [], |
1183 "branch": "default", | 1184 "branch": "default", |
1184 "phase": "draft", | |
1185 "user": "A. N. Other <other@place>", | |
1186 "date": [1100000, 0], | 1185 "date": [1100000, 0], |
1187 "desc": "other 1\nother 2\n\nother 3", | 1186 "desc": "other 1\nother 2\n\nother 3", |
1188 "bookmarks": [], | 1187 "extra": {"branch": "default"}, |
1188 "manifest": "4e8d705b1e53e3f9375e0e60dc7b525d8211fe55", | |
1189 "modified": [], | |
1190 "node": "b608e9d1a3f0273ccf70fb85fd6866b3482bf965", | |
1191 "parents": ["1e4e1b8f71e05681d422154f5421e385fec3454f"], | |
1192 "phase": "draft", | |
1193 "removed": [], | |
1194 "rev": 1, | |
1189 "tags": [], | 1195 "tags": [], |
1190 "parents": ["1e4e1b8f71e05681d422154f5421e385fec3454f"], | 1196 "user": "A. N. Other <other@place>" |
1191 "manifest": "4e8d705b1e53e3f9375e0e60dc7b525d8211fe55", | |
1192 "extra": {"branch": "default"}, | |
1193 "modified": [], | |
1194 "added": ["b"], | |
1195 "removed": [] | |
1196 }, | 1197 }, |
1197 { | 1198 { |
1198 "rev": 0, | 1199 "added": ["a"], |
1199 "node": "1e4e1b8f71e05681d422154f5421e385fec3454f", | 1200 "bookmarks": [], |
1200 "branch": "default", | 1201 "branch": "default", |
1201 "phase": "draft", | |
1202 "user": "User Name <user@hostname>", | |
1203 "date": [1000000, 0], | 1202 "date": [1000000, 0], |
1204 "desc": "line 1\nline 2", | 1203 "desc": "line 1\nline 2", |
1205 "bookmarks": [], | 1204 "extra": {"branch": "default"}, |
1205 "manifest": "a0c8bcbbb45c63b90b70ad007bf38961f64f2af0", | |
1206 "modified": [], | |
1207 "node": "1e4e1b8f71e05681d422154f5421e385fec3454f", | |
1208 "parents": ["0000000000000000000000000000000000000000"], | |
1209 "phase": "draft", | |
1210 "removed": [], | |
1211 "rev": 0, | |
1206 "tags": [], | 1212 "tags": [], |
1207 "parents": ["0000000000000000000000000000000000000000"], | 1213 "user": "User Name <user@hostname>" |
1208 "manifest": "a0c8bcbbb45c63b90b70ad007bf38961f64f2af0", | |
1209 "extra": {"branch": "default"}, | |
1210 "modified": [], | |
1211 "added": ["a"], | |
1212 "removed": [] | |
1213 } | 1214 } |
1214 ] | 1215 ] |
1215 | 1216 |
1216 Error if style not readable: | 1217 Error if style not readable: |
1217 | 1218 |