How to display the latest version in a file?

I am wondering how you feel about displaying the release version number when clicking new versions of your application?

You can use $Rev$the file to get the latest version, but only after updating the file.

What if I want to update a line in one file every time I change any file in a directory / directory?

Is there any way?

+5
source share
6 answers

Have you tried using hooks? They only work on the server side, but can do the trick. Otherwise, I would just call the script to update the version if the keywords do not suit you.

+2
source

- script , svnversion svn info . script, :

  • svnversion -
  • (zip tarball - )
  • : ,

. , - , , .

+8

TortoiseSVN SubWCRev.exe. . .

+3

/ .

+2

, , : svnversion , .

+1

alexander, - .

- , , , buildbot.

The scenario may be to start an automatic build using the post-hook script in your demolition repository. This causes your buildbot to be updated to the latest verified version. Your build script (e.g. Makefile) will use 'svnversion' (or 'svn info' and grep) to read the revision of the repository and write it to the header file before the build.

After a successful build, automatically check this file back to the repository with a suitable comment about the release version.

+1
source

All Articles