I am adding this answer in case someone is trying to update an already uploaded subversion repository in order to synchronize the local file dates with the repo dates that I wanted to do so that I could do FS Timestamp Comparison.
I did this oneliner to do the trick (but read the line below before using it):
svn info --show-item last-changed-date -R | xargs -I{} -P1000 -n1 sh -c 'x="{}"; set -x; exec touch -d "${x%% *}" "${x#* }"'
NOTE. . -P1000 indicates that xargs must run 1000 simultaneous copies of sh and touch for the actual update. Depending on the system load, it may be prudent to reduce this. On tiny i3-processors, the Intel NUC 1000 actually turned out to be ideal, using 80-95% of the CPU (100%, as a rule, means that the processor is overloaded). If in doubt, open, for example, htop and test with different values, but run it only for a few seconds, because every time it should start from the very beginning.
For a small ~ 3 GB SVN repository on a USB drive, this took about 5 minutes.
set +x includes verbose execution, which I do before doing touch , so you can watch it run. If you want to perform non-verbal execution, delete this command.
i336_
source share