comparison tests/test-evolve-obshistory-amend-then-fold.t @ 4918:f16274729530

obslog: don't overwrite {rev} keyword from changeset context Now that we have the whole changeset in the formatter context, there's no need to explicitly add {rev}. We should also deprecate the {shortdescription} keyword since it's no longer needed, but I don't know how to do that.
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 04 Nov 2019 14:58:58 -0800
parents 106c871dfebc
children 7aba58dc4b73
comparison
equal deleted inserted replaced
4917:d1d8e97d32af 4918:f16274729530
151 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool 151 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool
152 [ 152 [
153 { 153 {
154 "markers": [], 154 "markers": [],
155 "node": "eb5a0daa2192", 155 "node": "eb5a0daa2192",
156 "rev": 4,
157 "shortdescription": "C0" 156 "shortdescription": "C0"
158 }, 157 },
159 { 158 {
160 "markers": [ 159 "markers": [
161 { 160 {
175 "user": "test", 174 "user": "test",
176 "verb": "rewritten" 175 "verb": "rewritten"
177 } 176 }
178 ], 177 ],
179 "node": "b7ea6d14e664", 178 "node": "b7ea6d14e664",
180 "rev": 3,
181 "shortdescription": "B1" 179 "shortdescription": "B1"
182 }, 180 },
183 { 181 {
184 "markers": [ 182 "markers": [
185 { 183 {
197 "user": "test", 195 "user": "test",
198 "verb": "rewritten" 196 "verb": "rewritten"
199 } 197 }
200 ], 198 ],
201 "node": "0dec01379d3b", 199 "node": "0dec01379d3b",
202 "rev": 2,
203 "shortdescription": "B0" 200 "shortdescription": "B0"
204 }, 201 },
205 { 202 {
206 "markers": [ 203 "markers": [
207 { 204 {
220 "user": "test", 217 "user": "test",
221 "verb": "rewritten" 218 "verb": "rewritten"
222 } 219 }
223 ], 220 ],
224 "node": "471f378eab4c", 221 "node": "471f378eab4c",
225 "rev": 1,
226 "shortdescription": "A0" 222 "shortdescription": "A0"
227 } 223 }
228 ] 224 ]
229 $ hg update 471f378eab4c 225 $ hg update 471f378eab4c
230 abort: hidden revision '471f378eab4c' was rewritten as: eb5a0daa2192! 226 abort: hidden revision '471f378eab4c' was rewritten as: eb5a0daa2192!