[
https://issues.apache.org/jira/browse/SCM-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17959934#comment-17959934
]
ASF GitHub Bot commented on SCM-19:
-----------------------------------
jira-importer opened a new issue, #281:
URL: https://github.com/apache/maven-scm/issues/281
**[Brett
Porter](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=brettporter)**
opened
**[SCM-19](https://issues.apache.org/jira/browse/SCM-19?redirect=false)** and
commented
currently ScmFileStatus just reports whatever the provider gave back, but
means different things in different SCM's.
eg. "updated" in CVS is UPDATED or PATCHED, in SVN it is UPDATED or MERGED.
"added" in CVS is UPDATED, in SVN it is ADDED.
The API should hide this from the user, though perhaps be able to give the
extended info if necessary.
I suggest isXXX flags instead:
isUpdated()
isAdded() - just came from an update
isMerged()
isInConflict()
isNew() - new locally
etc.
---
**Attachments:**
-
[MNG-19_1-maven-scm-api.patch](https://issues.apache.org/jira/secure/attachment/12718686/MNG-19_1-maven-scm-api.patch)
(_4.37 kB_)
-
[MNG-19-maven-scm-api.patch](https://issues.apache.org/jira/secure/attachment/12718489/MNG-19-maven-scm-api.patch)
(_3.50 kB_)
> resolve file status ambiguities
> -------------------------------
>
> Key: SCM-19
> URL: https://issues.apache.org/jira/browse/SCM-19
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Task
> Components: maven-scm-api
> Reporter: Brett Porter
> Assignee: Torbjorn Eikli Smorgrav
> Priority: Major
> Fix For: 1.0-beta-3
>
> Attachments: MNG-19-maven-scm-api.patch, MNG-19_1-maven-scm-api.patch
>
>
> currently ScmFileStatus just reports whatever the provider gave back, but
> means different things in different SCM's.
> eg. "updated" in CVS is UPDATED or PATCHED, in SVN it is UPDATED or MERGED.
> "added" in CVS is UPDATED, in SVN it is ADDED.
> The API should hide this from the user, though perhaps be able to give the
> extended info if necessary.
> I suggest isXXX flags instead:
> isUpdated()
> isAdded() - just came from an update
> isMerged()
> isInConflict()
> isNew() - new locally
> etc.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)