Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » Embedding check-in comments in code
Embedding check-in comments in code [message #718307] Tue, 23 August 2011 22:15 Go to next message
jfraser3 is currently offline jfraser3Friend
Messages: 1
Registered: August 2011
Junior Member
We just migrated from CVS to Subversion. We used to be able to put in our Java code the tag $Log: $ and when we would check the file in, the check-in comments would be automatically inserted in descending order in our code.

Is there something similar that we can do using SVN and Subversive?

Re: Embedding check-in comments in code [message #724712 is a reply to message #718307] Mon, 12 September 2011 23:30 Go to previous message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 7
Registered: February 2011
Junior Member
You'd probably need to do this with hooks on the SVN server and some custom code to strip out and assemble the comments.

Are you hosting your SVN server on windows or a linix / unix box?

I think many of the tutorials show hooks as unix style shell scripts, but you can write them in anything you like. You can use svnlook to see what has changed on a revision.

Hooks can be pre or post commit. I'm not sure if you can modify the log comment in a pre-commit hook but you definitely can post-commit using svnadmin. So you could write a program as a post commit trigger which analyses the changes that have just been made and modifies the comment. There would be a very small delay between you finishing your commit and the log being updated if this is done post-commit, but since logs are only there for humans to read and are not versioned I don't see that this would be a problem.

I'm being rater vague because this is beyond anything I've done myself but I hope this points you in the right direction.
Previous Topic:Possible to add commit criteria?
Next Topic:How to add a Certificate Authority (CA) Certificate to SVN for https
Goto Forum:

Current Time: Tue May 22 10:28:39 GMT 2018

Powered by FUDForum. Page generated in 0.01598 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top