We always saved binary assets in TFS when we needed it, and just looked at the side effects of this choice (additional storage, longer checks, because you cannot distinguish between binary files, etc.). I do not think that there is a way to selectively destroy the history of certain files, except manually. If you want to do this periodically, manually, you can do the following:
- Get current copy of binary files
- Destroy (delete via history) binary copies in TFS
- Manually add files back to TFS
You will only have the latest copy, but this has a side effect - you would break any previous builds, as trying to restore the original history will not return these new copies of the files. TFS will check the copy that matches the scan you are trying, and without detecting it, it will not receive a copy of these files. You will need to update the build scripts to pull out the latest binaries, as well as the historical code, if you want to create an old version, but even then it will not be true history.
The second option is to periodically check them - not with every minor change. For example, keep these files somewhere safe (file share with daily backups), and then check only the modified binary files every week or so, or before each shortcut or something else - this way you do not have incremental stories, but you still have the history of your labels. You might even think about writing some kind of automated procedure for applying labels, where first you will check for any changes in this folder, and then apply the label.
Please write back what you end up doing - I'm curious to find out!
Sqlryan
source share