Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 24013:942a5a34b2d0 stable
log: fix json-formatted output when file copies are listed (issue4523)
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 02 Feb 2015 14:26:47 -0500 |
parents | 448bb32b8ee6 |
children | 8d295ce6e488 ac41aa4a66ab |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Tue Feb 03 21:56:29 2015 +0900 +++ b/mercurial/cmdutil.py Mon Feb 02 14:26:47 2015 -0500 @@ -1091,8 +1091,8 @@ if copies: self.ui.write(',\n "copies": {%s}' % - ", ".join('"%s": %s' % (j(k), j(copies[k])) - for k in copies)) + ", ".join('"%s": "%s"' % (j(k), j(v)) + for k, v in copies)) matchfn = self.matchfn if matchfn: