Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-CopyFilesFromBuild CPAN distribution.

Report information
The Basics
Id: 106031
Status: open
Priority: 0/
Queue: Dist-Zilla-Plugin-CopyFilesFromBuild

People
Owner: Nobody in particular
Requestors: VDB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.151680
Fixed in: (no value)



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.
On 2015-07-22 11:43:59, VDB wrote: Show quoted text
> 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
Using Path::Tiny to truncate+append would solve the timestamp problem (and preserve file permissions). It wouldn't help the log messages though.