.hg-format-source
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 07 Nov 2019 16:34:01 -0800
changeset 4946 bd992b1d4426
parent 4814 48b30ff742cb
permissions -rw-r--r--
obslog: make content and description patches available to templater The code was repeatedly calling fm.write() with the same field ("patch" and "descdiff"). I think that led to the value constantly getting replaced, so when it was used in a template (as {patch} or {descdiff}), it would only get the last value, which was always an empty string. This patch fixes it by writing the full patch to a temporary buffer and then assigning the whole patch to the formatter field.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4814
48b30ff742cb python3: use format-source to run byteify-strings in .py files
Raphaël Gomès <rgomes@octobus.net>
parents:
diff changeset
     1
{"pattern": "glob:hgext3rd/**/*.py", "tool": "byteify-strings"}