--- a/tests/test-oldconvert.t Sat Jun 30 03:25:25 2012 +0200
+++ b/tests/test-oldconvert.t Tue Jul 03 14:18:33 2012 +0200
@@ -53,6 +53,65 @@
date: Thu Jan 01 00:00:00 1970 +0000
summary: add a
+ $ hg debugsuccessors
+ 7c3bad9141dc d67cd0334eee
$ hg debugconvertobsolete
nothing to do
0 obsolete marker converted
+
+Convert json
+
+ $ cat > .hg/store/obsoletemarkers << EOF
+ > [
+ > {
+ > "reason": "import from older format.",
+ > "subjects": [
+ > "3218406b50ed13480765e7c260669620f37fba6e"
+ > ],
+ > "user": "Pierre-Yves David <pierre-yves.david@ens-lyon.org>",
+ > "date": [
+ > 1336503323.9768269,
+ > -7200
+ > ],
+ > "object": "3e03d82708d4da97a92158558dd13386d8f09ad5",
+ > "id": "4743f676eaf3923cb98c921ee06b2e91052c365b"
+ > },
+ > {
+ > "reason": "import from older format.",
+ > "subjects": [
+ > "a37154106de358121a32a3dd6ba0281931550515"
+ > ],
+ > "user": "Pierre-Yves David <pierre-yves.david@logilab.fr>",
+ > "date": [
+ > 1336557472.7875929,
+ > -7200
+ > ],
+ > "object": "5c722672795c3a2cb94d0cc9a821c394c1475f87",
+ > "id": "1fd90a84b7225d2e3062b7e1b3100aa2e060fc72"
+ > },
+ > {
+ > "reason": "import from older format.",
+ > "subjects": [
+ > "dc8d8aa6e8ac490fcafd074d570df0787ee0ee69"
+ > ],
+ > "user": "Pierre-Yves David <pierre-yves.david@logilab.fr>",
+ > "date": [
+ > 1336557472.784307,
+ > -7200
+ > ],
+ > "object": "2c3784e102bb34ccc93862af5bd6d609ee30c577",
+ > "id": "7d940c5ee1f886c8a6c0d805b43e522cb3ef7a15"
+ > }
+ > ]
+ > EOF
+ $ hg glog
+ abort: old format of obsolete marker detected!
+ run `hg debugconvertobsolete` once.
+ [255]
+ $ hg debugconvertobsolete --traceback
+ 3 obsolete marker converted
+ $ hg debugsuccessors
+ 2c3784e102bb dc8d8aa6e8ac
+ 3e03d82708d4 3218406b50ed
+ 5c722672795c a37154106de3
+ 7c3bad9141dc d67cd0334eee