Subject: | Copy/move files only if content is actually changed |
Hi,
I successfully use CopyFilesFromBuild plugin to copy back to the source two files: COPYING and README. If build success (e. g. almost always) the plugin copies files and logs two messages:
$ dzil build
...
[CopyFilesFromBuild] Copied ...-0.005_001/README to ./README
[CopyFilesFromBuild] Copied ...-0.005_001/COPYING to ./COPYING
...
I would like the plugin copies files only if the content is actually changed for two reasons:
1. To keep files modification time.
2. To hide these messages.
I know, that both git and hg ignores file modification timestamp and look for actually changed files, but anyway sometimes having actual modification time is convenient. For example, when looking for recently modified files I can tune my file manager (mc, namely) to sort files on modification time. COPYING and README will be always at top, even if they content is not modified for a long time.
Reasoning for hiding messages is also simple. I do not object (and even like) to see these messages when files are changed and so copied, but most of the time these two messages do not have any meaning and clutter dzil output.