Get tortoisesvn to give me filenames with build number in the filename

Posted by EricJLN on Super User See other posts from Super User or by EricJLN
Published on 2010-05-14T21:34:23Z Indexed on 2010/05/14 21:34 UTC
Read the original article Hit count: 267

Filed under:
|

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.

© Super User or respective owner

Related posts about toroisesvn

Related posts about windows-7