I am using: TortoiseSVN and VisualSVN Server
I would like if there is a way to automaticly include the revision number in a file.
All the things I found here were really unclear on how to do it, I am a beginner with SVN so.
Is there a way? And is there an easy guide or something for?
EDIT: I would like the following: in a PHP file the current revision number. So if I commit to version 7, in the PHP file would stand 7. However, I could just do the same in a TXT file. Just the number, and then include it in the PHP.
You could use the SubWCRev program that comes with Tortoise to do this - the official page is here: http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-subwcrev.html
I've found if you navigate to a working copy folder in the windows command prompt and run SubWCRev . > version.txt
you'll get the following in the version.txt file:
SubWCRev: 'C:\Users\User\SVN\repo1'
Last committed at revision X
Updated to revision Y
Local modifications found
Unversioned items found
Hope that gets you what you want.