Mercurial > evolve
comparison tests/test-evolve-obshistory-content-divergent.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 | 11b775fddda8 |
children | 7aba58dc4b73 |
comparison
equal
deleted
inserted
replaced
4917:d1d8e97d32af | 4918:f16274729530 |
---|---|
154 "user": "test", | 154 "user": "test", |
155 "verb": "rewritten" | 155 "verb": "rewritten" |
156 } | 156 } |
157 ], | 157 ], |
158 "node": "471f378eab4c", | 158 "node": "471f378eab4c", |
159 "rev": 1, | |
160 "shortdescription": "A0" | 159 "shortdescription": "A0" |
161 } | 160 } |
162 ] | 161 ] |
163 Check that debugobshistory on the first diverged revision show the revision | 162 Check that debugobshistory on the first diverged revision show the revision |
164 and the diverent one | 163 and the diverent one |
283 $ hg obslog '65b757b745b9+fdf9bde5129a' --no-graph -Tjson | python -m json.tool | 282 $ hg obslog '65b757b745b9+fdf9bde5129a' --no-graph -Tjson | python -m json.tool |
284 [ | 283 [ |
285 { | 284 { |
286 "markers": [], | 285 "markers": [], |
287 "node": "65b757b745b9", | 286 "node": "65b757b745b9", |
288 "rev": 3, | |
289 "shortdescription": "A2" | 287 "shortdescription": "A2" |
290 }, | 288 }, |
291 { | 289 { |
292 "markers": [ | 290 "markers": [ |
293 { | 291 { |
320 "user": "test", | 318 "user": "test", |
321 "verb": "rewritten" | 319 "verb": "rewritten" |
322 } | 320 } |
323 ], | 321 ], |
324 "node": "471f378eab4c", | 322 "node": "471f378eab4c", |
325 "rev": 1, | |
326 "shortdescription": "A0" | 323 "shortdescription": "A0" |
327 }, | 324 }, |
328 { | 325 { |
329 "markers": [], | 326 "markers": [], |
330 "node": "fdf9bde5129a", | 327 "node": "fdf9bde5129a", |
331 "rev": 2, | |
332 "shortdescription": "A1" | 328 "shortdescription": "A1" |
333 } | 329 } |
334 ] | 330 ] |
335 $ hg update 471f378eab4c | 331 $ hg update 471f378eab4c |
336 abort: hidden revision '471f378eab4c' has diverged! | 332 abort: hidden revision '471f378eab4c' has diverged! |