Is it possible with Subversion to add the Revision History to a file with a svn property as with Id, Rev, Author? We would like to have the revision history automatically added to the beginning of a file.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It sound like you want to do something similar as the evil $log$ keyword in CVS. There’s a reason why it was called evil, and why it was left out of Subversion with no plans to implement it.
I would highly recommend that you do this in your build system (Yes, I know these are shell scripts, and shell scripts aren’t compiled, but a build system can be used for packaging). PUt this information into a release notes file, and not in your shell scripts.
If you really, really insist this must be done, you can use Ant to munge your shell scripts during packaging. You can put the dreaded
$LOG$keyword in your shell scripts, and when Ant does the packaging, it can replace$LOG$with the Subversion history.