- As suggested in linked topic, you can always change some property of file before commit. But if you want to play with content, part of answer from TortoiseSVN FAQ will be useful for you (starting from "Subversion determines whether a file has changed with the following approach...")
- From other side, I'll seriously suggest you to re-think about current workflow and use The Right Things for The Right Job - don't rely on keyword of file (file-revision) in order to obtain global repository-wide revison
For "getting repository revision" task you have at least 3 different tools, 2 from which are part of any Subversion, 1 is part of TortoiseSVN:
- Svnversion.
svnversion <Path-to-WC>
output global revision number of linked to WC repository, clean numbers without decorations, ready for inclusion into anything
>svnversion
37
(inside WC I skipped path, "." assumed). Output must be translated into smth. like "Latest revision in repo is 37, Working Copy is clean /no uncommited changes, no spare-dirs, state of WC can be reproduced lately/"
>svnversion
37M
Same Working Copy, but changes was performed and still not committed
- Info.
svn info <TARGET>
output more verbose information about target, but can be used with repository URL also, not only Working Copy
>svn info
...
Revision: 37
...
Last Changed Date: 2013-01-09 11:45:39 +0600 (Ср, 09 янв 2013)
Only Revision
field (and, probably, Last Changed Date
) values have interest in this case, but this data must be extracted from output
- SubWCRev and sample of usage for TortoiseSVN code inside FAQ-topic