Mercurial > evolve
comparison tests/test-evolve-obshistory-content-divergent.t @ 5323:6ea05c9744de stable
obslog: make obslog --no-origin -f work with multiple successor sets
When trying to sort multiple successor sets, this block of code used to fail
with:
- TypeError: '<' not supported between instances of 'dict' and 'dict' (on py3)
- TypeError: cannot compare sets using cmp() (on py2)
So for sorted() to work properly, we need to remove dicts and sets from the
data.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 14 May 2020 22:19:58 +0800 |
parents | e8660b28bfee |
children | 053f1fc12545 87966baf6ea9 |
comparison
equal
deleted
inserted
replaced
5320:c2eea89b3f74 | 5323:6ea05c9744de |
---|---|
96 @@ -1,1 +1,1 @@ | 96 @@ -1,1 +1,1 @@ |
97 -A0 | 97 -A0 |
98 +A1 | 98 +A1 |
99 | 99 |
100 | 100 |
101 $ hg obslog --hidden 'desc(A0)' --no-origin -f | |
102 x 471f378eab4c (1) A0 | |
103 reworded(description) as 65b757b745b9 using amend by test (Thu Jan 01 00:00:00 1970 +0000) | |
104 reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000) | |
105 | |
101 | 106 |
102 Check that with all option, every changeset is shown | 107 Check that with all option, every changeset is shown |
103 $ hg obslog --hidden --all 471f378eab4c --patch | 108 $ hg obslog --hidden --all 471f378eab4c --patch |
104 @ 65b757b745b9 (3) A2 | 109 @ 65b757b745b9 (3) A2 |
105 | reworded(description) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000) | 110 | reworded(description) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
120 | -A0 | 125 | -A0 |
121 | +A1 | 126 | +A1 |
122 | | 127 | |
123 | | 128 | |
124 x 471f378eab4c (1) A0 | 129 x 471f378eab4c (1) A0 |
130 | |
131 $ hg obslog --hidden --all 'desc(A0)' --no-origin -f | |
132 @ 65b757b745b9 (3) A2 | |
133 | | |
134 | * fdf9bde5129a (2) A1 | |
135 |/ | |
136 x 471f378eab4c (1) A0 | |
137 reworded(description) as 65b757b745b9 using amend by test (Thu Jan 01 00:00:00 1970 +0000) | |
138 reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000) | |
125 | 139 |
126 $ hg obslog --hidden 471f378eab4c --no-graph --no-origin -Tjson | python -m json.tool | 140 $ hg obslog --hidden 471f378eab4c --no-graph --no-origin -Tjson | python -m json.tool |
127 [ | 141 [ |
128 { | 142 { |
129 "markers": [ | 143 "markers": [ |