2

I'm working on an Apache Wicket project in Eclipse with Maven2 -- my SCM is Subversion. I've got Subclipse set up which I use to commit changes to the repository.

I've seen several projects with nice headers containing the current revision number and at the bottom of the java source file there's a list of all the changes that have been committed to the file including the comments that were passed.

Is there any way of achieving this sort of behaviour automatically? At work I'm using MKS which does this automatically but I am yet to figure out how to achieve this with SVN and Eclipse.

2 Answers 2

7

You are asking about "Keyword Substitution", and it is indeed possible. This page will explain everything you need to know: http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html

FYI not everybody thinks this is a good idea. E.g.: http://wordaligned.org/articles/keyword-substitution-just-say-no

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks dkamins. That's exactly what I was looking for and I appreciate the second link
I agree. Commit information is meta-information and should not go in the actual file.
0

You can use predefined keys to commit the changes in SVN. You can check Eclipse all the predefined keys in Preferences | General | Keys.

Refer: https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Faccessibility%2Fkeyboardshortcuts.htm

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.