[ 
https://issues.apache.org/jira/browse/SCM-970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17416786#comment-17416786
 ] 

Michael Osipov commented on SCM-970:
------------------------------------

You missunderstood me. I will rephrase: Shoudl the ScmProvider interface 
provide a getter to the client caller which says what type of SCM this is? 
E.g., Subversion would return {{CENTRALIZED}} and throw a 
{{NotImplementedException}} on a  {{push()}} method.

> Have separate APIs for distributed and centralized version control
> ------------------------------------------------------------------
>
>                 Key: SCM-970
>                 URL: https://issues.apache.org/jira/browse/SCM-970
>             Project: Maven SCM
>          Issue Type: Improvement
>            Reporter: Robert Scholte
>            Priority: Major
>             Fix For: 2.0.0
>
>
> The nature of these 2 types are very different. The original scm api was 
> based on centralized repositories, and the distributed was implemented behind 
> those methods, which makes it more complex than required.
> Splitting this will make it easier to make full use of distributed features.
> Keep in mind that plugins like the maven-release-plugin must still be able to 
> do their work, but they may need to provide implementations for both tastes 
> (unless the original scm-api implements it).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to