Hi,
Have you seen the discussion of a similar request on
StackOverflow? It's from several years ago but I don't think things will have changed too much.
- Short answer: no.
- Longer answer: why would you want to?
- Much longer answer: there may be convoluted ways to do so but very likely more effort than it's worth.
When I started with version control, I also felt like this would be useful to maintain file modification date/times. This was based on something I'd seen in shipping files were the file time was selected to reflect the product version number. However, with much more experience I find that it isn't useful - for me, and, I suspect, most others. I now better understand why changing file date/times is usually not helpful, as described in the
TortoiseSVN documentation, in the section titled "
Set file dates to the “last commit time”".
Your message doesn't include specific details of the intended usage, so it's only possible to comment generally. Such generalities might be less helpful than you'd hoped.
It's not clear, to me, why it would be a problem for there to be two files, in different folders, with the same content, even if the file date/times are different. Rather than using the modified date/time to compare files, it would seem better to use a diff tool to compare the file content directly. Many diff tools will allow two folders to be compared, including sub-folders, and all the contained files, or masked subset. Alternatively, if the deployment requires multiple checkouts of the files to different locations, the Check For Modifications option can be used to determine if any of the files have been edited locally, in each working copy (i.e. checkout).
I suspect that I simply don't understand the required usage and that you likely already know this information and suggestions, described above. If that's the case, sorry. However, it's possible that you might be better to adapt your usage to fit the way Subversion works, rather than trying to adapt the tool to do something it doesn't easily do.
Perhaps others might have better suggestions.
Hope this helps.