I'm writing a PowerShell script that does the following.
- Does an SVN export of a Subversion repository to a temporary folder
- Zips the contents of the temp folder into a 7-Zip archive
- Compares the MD5 hash of this file to that of a destination file
- If the hash is different, (that is, the file has changed) overwrite the destination archive with this one
I noticed something curious. The hashes of the 7z archives are always different even if the contents of the files themselves have not changed. Presumably because the timestamps are different?
Is this by design?
How can I get the hashes of the 7-Zip archives to be the same if the files have not changed?