##// END OF EJS Templates
log: fix json-formatted output when file copies are listed (issue4523)
Augie Fackler -
r24013:942a5a34 stable
parent child Browse files
Show More
@@ -1091,8 +1091,8 b' class jsonchangeset(changeset_printer):'
1091 1091
1092 1092 if copies:
1093 1093 self.ui.write(',\n "copies": {%s}' %
1094 ", ".join('"%s": %s' % (j(k), j(copies[k]))
1095 for k in copies))
1094 ", ".join('"%s": "%s"' % (j(k), j(v))
1095 for k, v in copies))
1096 1096
1097 1097 matchfn = self.matchfn
1098 1098 if matchfn:
@@ -494,7 +494,23 b' log copies with hardcoded style and with'
494 494 e
495 495
496 496
497
497 $ hg log -vC -r4 -Tjson
498 [
499 {
500 "rev": 4,
501 "node": "7e4639b4691b9f84b81036a8d4fb218ce3c5e3a3",
502 "branch": "default",
503 "phase": "draft",
504 "user": "test",
505 "date": [5, 0],
506 "desc": "e",
507 "bookmarks": [],
508 "tags": ["tip"],
509 "parents": ["2ca5ba7019804f1f597249caddf22a64d34df0ba"],
510 "files": ["dir/b", "e"],
511 "copies": {"e": "dir/b"}
512 }
513 ]
498 514
499 515 log copies, non-linear manifest
500 516
General Comments 0
You need to be logged in to leave comments. Login now