Skip to content

SVN: support svn:log revprop changes #305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

pantsmanuk
Copy link
Contributor

Add rudimentary support for svn:log revprop changes to permit SCI to keep
repositories current when you have developers that don't always get commit
messages right first time. Doesn't deal with reopening "accidentally closed"
issues.

Add rudimentary support for svn:log revprop changes to permit SCI to keep
repositories current when you have developers that don't always get commit
messages right first time. Doesn't deal with reopening "accidentally closed"
issues.
@dregad
Copy link
Member

dregad commented Feb 12, 2019

I suppose this is a refresh of #84 ?

@pantsmanuk
Copy link
Contributor Author

Pretty much, yes. I pulled mantisbt-plugins/source-integration:master and banged #84 until it fitted/worked.

Copy link
Member

@dregad dregad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned that your approach would introduce regression issues for other VCS plugins.

Instead of changing the core, it would probably be better to have the SourceSVN plugin hook into the SOURCE_PRECOMMIT event, and handle the extra reprop parameter there.

You can have a look at how the SourceGithub uses this mechanism, to retrieve an extra post parameter and process payload in the message body.

@pantsmanuk
Copy link
Contributor Author

Thanks for the feedback. Will take on board and "resubmit".

Reverted checkin.php to 8baf96b
Reverted Source.API.php to eb25dfb
(Current in mantisbt-plugins/source-integration origin>master)
Signature of function commit() restored, gpc value is detected directly.
Output strings localized.
Indentation corrected.
@dregad
Copy link
Member

dregad commented Feb 18, 2019

@pantsmanuk This looks good to me, but I don't use SVN so I can't test. I assume you have done so yourself, so let's just give a few days for other users to provide feedback before merging.

Changed the boolean "if($t_revprop==false)" to the more "normal" "if(!$t_revprop)"
@dregad dregad closed this in 1544183 Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants