Get tortoisesvn to give me filenames with build number in the filename
- by EricJLN
I am on a Windows 7 box, and I have tortoisesvn on my machine. After getting a little familiar with svn and tortoisesvn on a code repository, I set up a local repository to manage revisions of some word and powerpoint documents.
I want to figure out some scripted way to output a set of files with the build/revision number embedded in the filename. I will then email the files to some business people to review.
For example, say I have a group of files in my working directory:
PresentA.pptx
PresentA-notes.docx
PresentB.pptx
and TortoiseSVN repo browser tells me that I am currently at revision 21 for PresentA.pptx and PresentA-notes.docx but at revision 25 for PresentB.pptx, I would like some way to get 3 files with the following names:
PresentA-r21.pptx
PresentA-notes-r21.docx
PresentB-r25.pptx
Alternatively, if revision 25 is the current value for the repository, having all the names appended with -r25 would work, too.