hi I’m new to svn and I want to write a windows command line script that checks if the working version of a file is the same as the head and if it is run a exe? If it isn’t the same as the working version I want to exit the script without running the executable.
Help please!
I know enough about Windows cmd batch processing language to know that doing things like this may be next to impossible. At least Powershell is a complete language.
I can tell you one thing: You can look at
svn status --show-updates fileto see iffileis up to date:File is up to date:
File isn’t up to date:
If you can somehow use the Windows command batch language to parse the output of that command, you could check whether
fileis the latest version or not.