]> git.donarmstrong.com Git - lilypond.git/commit
convert-ly: Don't update \version when no rule is applied.
authorJulien Rioux <jrioux@physics.utoronto.ca>
Fri, 5 Oct 2012 22:09:48 +0000 (18:09 -0400)
committerJulien Rioux <jrioux@physics.utoronto.ca>
Fri, 12 Oct 2012 19:20:43 +0000 (15:20 -0400)
commit91f8d0ab0bfbd603b8f7801ef9f5c03529cbfa66
tree267eaba73e2bcb8ca0507f87f8041dd0d6558d11
parent36379a15aaee3a4c1fa85f9d37048bd0d4a23b76
convert-ly: Don't update \version when no rule is applied.

Note that this is not the same as what the existing -d
--diff-version-update command does. The behavior of convert-ly is
unchanged when rules are being applied, and -d is still used in the
same way. The change concerns itself only with the case that no rule
applies, because the version of the file is already up-to-date. In
this case, it used to be that the version in the file would be set to
version of the last rule, which would sometimes mean that the version
of the file upon output is lower than the version at input. This is
what we avoid in this patch.

This fixes issue 2670.
scripts/convert-ly.py