You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Petr Kozelka (JIRA)" <ji...@codehaus.org> on 2011/11/30 01:45:39 UTC
[jira] Created: (SCM-649) Enhance SCM changelog model to hold more
data about changes
Enhance SCM changelog model to hold more data about changes
-----------------------------------------------------------
Key: SCM-649
URL: https://jira.codehaus.org/browse/SCM-649
Project: Maven SCM
Issue Type: Improvement
Components: maven-scm-api, maven-scm-provider-git, maven-scm-provider-svn
Affects Versions: 1.6
Reporter: Petr Kozelka
Attachments: scm-richmodel-git.patch, scm-richmodel-model.patch, scm-richmodel-svn.patch
Hello,
I would like to get more information from SCM changelog command, and attached patches contain my proposal doing some part of this.
There are separate patches for model and for GIT and SVN implementations, I hope it makes them easier to review.
New functionality is mostly covered with tests.
+Summary of proposed enhancements:+
ChangeFile.java:
- added: ScmFileStatus *action*
- added: String *originalName*
- added: String *originalRevision*
- they all included in toString()
ScmFileStatus.java:
- added: *RENAMED* = new ScmFileStatus( "renamed" );
- added: *COPIED* = new ScmFileStatus( "copied" );
ChangeSet.java:
- added: String *parentRevision*
- added: Set<String> *mergedRevisions*
- both added to toString()
- both added to toXML() + those from ChangeFile - all values stored in elements not attributes just like the others
GIT implementation notes (GitChangeLogConsumer):
- besides parsing the "whatchanged" command, now the consumer can handle also many options of the "log" command and harvest most of its provided info.
In particular, the output of "git log --format=raw -C --raw --no-abbrev" can be parsed.
- there is a potential to simply enable parsing for some more information like committer, committerDate and treeHash, which I didn't yet (as GIT-only stuff it may require separate discussion)
SVN implementation notes (SvnChangeLogConsumer):
- svn action "A" (Add) translates to "added" or "copied" depending of presence of originalFile
- svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile; _any opinions about this ?_
- svn action "R" (Replace) translates to "updated" which IMHO has sufficiently close semantic
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SCM-649) Enhance SCM changelog model to hold
more data about changes
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SCM-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285094#comment-285094 ]
Olivier Lamy commented on SCM-649:
----------------------------------
@Petr: Yup I have seen :-)
Regarding " svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile ": ok for me.
I will work on submit your patch.
> Enhance SCM changelog model to hold more data about changes
> -----------------------------------------------------------
>
> Key: SCM-649
> URL: https://jira.codehaus.org/browse/SCM-649
> Project: Maven SCM
> Issue Type: Improvement
> Components: maven-scm-api, maven-scm-provider-git, maven-scm-provider-svn
> Affects Versions: 1.6
> Reporter: Petr Kozelka
> Assignee: Olivier Lamy
> Fix For: 1.7
>
> Attachments: scm-richmodel-git.patch, scm-richmodel-model.patch, scm-richmodel-svn.patch
>
>
> Hello,
> I would like to get more information from SCM changelog command, and attached patches contain my proposal doing some part of this.
> There are separate patches for model and for GIT and SVN implementations, I hope it makes them easier to review.
> New functionality is mostly covered with tests.
> +Summary of proposed enhancements:+
> ChangeFile.java:
> - added: ScmFileStatus *action*
> - added: String *originalName*
> - added: String *originalRevision*
> - they all included in toString()
> ScmFileStatus.java:
> - added: *RENAMED* = new ScmFileStatus( "renamed" );
> - added: *COPIED* = new ScmFileStatus( "copied" );
> ChangeSet.java:
> - added: String *parentRevision*
> - added: Set<String> *mergedRevisions*
> - both added to toString()
> - both added to toXML() + those from ChangeFile - all values stored in elements not attributes just like the others
> GIT implementation notes (GitChangeLogConsumer):
> - besides parsing the "whatchanged" command, now the consumer can handle also many options of the "log" command and harvest most of its provided info.
> In particular, the output of "git log --format=raw -C --raw --no-abbrev" can be parsed.
> - there is a potential to simply enable parsing for some more information like committer, committerDate and treeHash, which I didn't yet (as GIT-only stuff it may require separate discussion)
> SVN implementation notes (SvnChangeLogConsumer):
> - svn action "A" (Add) translates to "added" or "copied" depending of presence of originalFile
> - svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile; _any opinions about this ?_
> - svn action "R" (Replace) translates to "updated" which IMHO has sufficiently close semantic
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Reopened: (SCM-649) Enhance SCM changelog model to hold more
data about changes
Posted by "Petr Kozelka (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SCM-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Petr Kozelka reopened SCM-649:
------------------------------
I just implemented simple support of this feature for Bazaar SCM so I hope it's ok to reopen the existing issue.
Please let me know if subtasks or any other way is preferred.
Bazaar implementation notes:
- action "renamed" is supported; this stores *originalFile* but not *originalRevision* because there is no such information in the log
- I _manually_ enhanced the changeLogWithMerge.txt file to contain "renamed" section _(taken from my sample bzr repo)_, which is then checked in test
> Enhance SCM changelog model to hold more data about changes
> -----------------------------------------------------------
>
> Key: SCM-649
> URL: https://jira.codehaus.org/browse/SCM-649
> Project: Maven SCM
> Issue Type: Improvement
> Components: maven-scm-api, maven-scm-provider-git, maven-scm-provider-svn
> Affects Versions: 1.6
> Reporter: Petr Kozelka
> Assignee: Olivier Lamy
> Fix For: 1.7
>
> Attachments: scm-richmodel-git.patch, scm-richmodel-model.patch, scm-richmodel-svn.patch
>
>
> Hello,
> I would like to get more information from SCM changelog command, and attached patches contain my proposal doing some part of this.
> There are separate patches for model and for GIT and SVN implementations, I hope it makes them easier to review.
> New functionality is mostly covered with tests.
> +Summary of proposed enhancements:+
> ChangeFile.java:
> - added: ScmFileStatus *action*
> - added: String *originalName*
> - added: String *originalRevision*
> - they all included in toString()
> ScmFileStatus.java:
> - added: *RENAMED* = new ScmFileStatus( "renamed" );
> - added: *COPIED* = new ScmFileStatus( "copied" );
> ChangeSet.java:
> - added: String *parentRevision*
> - added: Set<String> *mergedRevisions*
> - both added to toString()
> - both added to toXML() + those from ChangeFile - all values stored in elements not attributes just like the others
> GIT implementation notes (GitChangeLogConsumer):
> - besides parsing the "whatchanged" command, now the consumer can handle also many options of the "log" command and harvest most of its provided info.
> In particular, the output of "git log --format=raw -C --raw --no-abbrev" can be parsed.
> - there is a potential to simply enable parsing for some more information like committer, committerDate and treeHash, which I didn't yet (as GIT-only stuff it may require separate discussion)
> SVN implementation notes (SvnChangeLogConsumer):
> - svn action "A" (Add) translates to "added" or "copied" depending of presence of originalFile
> - svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile; _any opinions about this ?_
> - svn action "R" (Replace) translates to "updated" which IMHO has sufficiently close semantic
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SCM-649) Enhance SCM changelog model to hold more
data about changes
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SCM-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy updated SCM-649:
-----------------------------
Fix Version/s: 1.7
Assignee: Olivier Lamy
> Enhance SCM changelog model to hold more data about changes
> -----------------------------------------------------------
>
> Key: SCM-649
> URL: https://jira.codehaus.org/browse/SCM-649
> Project: Maven SCM
> Issue Type: Improvement
> Components: maven-scm-api, maven-scm-provider-git, maven-scm-provider-svn
> Affects Versions: 1.6
> Reporter: Petr Kozelka
> Assignee: Olivier Lamy
> Fix For: 1.7
>
> Attachments: scm-richmodel-git.patch, scm-richmodel-model.patch, scm-richmodel-svn.patch
>
>
> Hello,
> I would like to get more information from SCM changelog command, and attached patches contain my proposal doing some part of this.
> There are separate patches for model and for GIT and SVN implementations, I hope it makes them easier to review.
> New functionality is mostly covered with tests.
> +Summary of proposed enhancements:+
> ChangeFile.java:
> - added: ScmFileStatus *action*
> - added: String *originalName*
> - added: String *originalRevision*
> - they all included in toString()
> ScmFileStatus.java:
> - added: *RENAMED* = new ScmFileStatus( "renamed" );
> - added: *COPIED* = new ScmFileStatus( "copied" );
> ChangeSet.java:
> - added: String *parentRevision*
> - added: Set<String> *mergedRevisions*
> - both added to toString()
> - both added to toXML() + those from ChangeFile - all values stored in elements not attributes just like the others
> GIT implementation notes (GitChangeLogConsumer):
> - besides parsing the "whatchanged" command, now the consumer can handle also many options of the "log" command and harvest most of its provided info.
> In particular, the output of "git log --format=raw -C --raw --no-abbrev" can be parsed.
> - there is a potential to simply enable parsing for some more information like committer, committerDate and treeHash, which I didn't yet (as GIT-only stuff it may require separate discussion)
> SVN implementation notes (SvnChangeLogConsumer):
> - svn action "A" (Add) translates to "added" or "copied" depending of presence of originalFile
> - svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile; _any opinions about this ?_
> - svn action "R" (Replace) translates to "updated" which IMHO has sufficiently close semantic
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SCM-649) Enhance SCM changelog model to hold more
data about changes
Posted by "Petr Kozelka (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SCM-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Petr Kozelka updated SCM-649:
-----------------------------
Attachment: scm-richmodel-bazaar.patch
Attaching the bazaar patch.
> Enhance SCM changelog model to hold more data about changes
> -----------------------------------------------------------
>
> Key: SCM-649
> URL: https://jira.codehaus.org/browse/SCM-649
> Project: Maven SCM
> Issue Type: Improvement
> Components: maven-scm-api, maven-scm-provider-git, maven-scm-provider-svn
> Affects Versions: 1.6
> Reporter: Petr Kozelka
> Assignee: Olivier Lamy
> Fix For: 1.7
>
> Attachments: scm-richmodel-bazaar.patch, scm-richmodel-git.patch, scm-richmodel-model.patch, scm-richmodel-svn.patch
>
>
> Hello,
> I would like to get more information from SCM changelog command, and attached patches contain my proposal doing some part of this.
> There are separate patches for model and for GIT and SVN implementations, I hope it makes them easier to review.
> New functionality is mostly covered with tests.
> +Summary of proposed enhancements:+
> ChangeFile.java:
> - added: ScmFileStatus *action*
> - added: String *originalName*
> - added: String *originalRevision*
> - they all included in toString()
> ScmFileStatus.java:
> - added: *RENAMED* = new ScmFileStatus( "renamed" );
> - added: *COPIED* = new ScmFileStatus( "copied" );
> ChangeSet.java:
> - added: String *parentRevision*
> - added: Set<String> *mergedRevisions*
> - both added to toString()
> - both added to toXML() + those from ChangeFile - all values stored in elements not attributes just like the others
> GIT implementation notes (GitChangeLogConsumer):
> - besides parsing the "whatchanged" command, now the consumer can handle also many options of the "log" command and harvest most of its provided info.
> In particular, the output of "git log --format=raw -C --raw --no-abbrev" can be parsed.
> - there is a potential to simply enable parsing for some more information like committer, committerDate and treeHash, which I didn't yet (as GIT-only stuff it may require separate discussion)
> SVN implementation notes (SvnChangeLogConsumer):
> - svn action "A" (Add) translates to "added" or "copied" depending of presence of originalFile
> - svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile; _any opinions about this ?_
> - svn action "R" (Replace) translates to "updated" which IMHO has sufficiently close semantic
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SCM-649) Enhance SCM changelog model to hold
more data about changes
Posted by "Petr Kozelka (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SCM-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285084#comment-285084 ]
Petr Kozelka commented on SCM-649:
----------------------------------
Hi Olivier,
done, ack forwarded to your @apache mail
> Enhance SCM changelog model to hold more data about changes
> -----------------------------------------------------------
>
> Key: SCM-649
> URL: https://jira.codehaus.org/browse/SCM-649
> Project: Maven SCM
> Issue Type: Improvement
> Components: maven-scm-api, maven-scm-provider-git, maven-scm-provider-svn
> Affects Versions: 1.6
> Reporter: Petr Kozelka
> Assignee: Olivier Lamy
> Fix For: 1.7
>
> Attachments: scm-richmodel-git.patch, scm-richmodel-model.patch, scm-richmodel-svn.patch
>
>
> Hello,
> I would like to get more information from SCM changelog command, and attached patches contain my proposal doing some part of this.
> There are separate patches for model and for GIT and SVN implementations, I hope it makes them easier to review.
> New functionality is mostly covered with tests.
> +Summary of proposed enhancements:+
> ChangeFile.java:
> - added: ScmFileStatus *action*
> - added: String *originalName*
> - added: String *originalRevision*
> - they all included in toString()
> ScmFileStatus.java:
> - added: *RENAMED* = new ScmFileStatus( "renamed" );
> - added: *COPIED* = new ScmFileStatus( "copied" );
> ChangeSet.java:
> - added: String *parentRevision*
> - added: Set<String> *mergedRevisions*
> - both added to toString()
> - both added to toXML() + those from ChangeFile - all values stored in elements not attributes just like the others
> GIT implementation notes (GitChangeLogConsumer):
> - besides parsing the "whatchanged" command, now the consumer can handle also many options of the "log" command and harvest most of its provided info.
> In particular, the output of "git log --format=raw -C --raw --no-abbrev" can be parsed.
> - there is a potential to simply enable parsing for some more information like committer, committerDate and treeHash, which I didn't yet (as GIT-only stuff it may require separate discussion)
> SVN implementation notes (SvnChangeLogConsumer):
> - svn action "A" (Add) translates to "added" or "copied" depending of presence of originalFile
> - svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile; _any opinions about this ?_
> - svn action "R" (Replace) translates to "updated" which IMHO has sufficiently close semantic
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SCM-649) Enhance SCM changelog model to hold more
data about changes
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SCM-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy updated SCM-649:
-----------------------------
Component/s: maven-scm-provider-bazaar
> Enhance SCM changelog model to hold more data about changes
> -----------------------------------------------------------
>
> Key: SCM-649
> URL: https://jira.codehaus.org/browse/SCM-649
> Project: Maven SCM
> Issue Type: Improvement
> Components: maven-scm-api, maven-scm-provider-bazaar, maven-scm-provider-git, maven-scm-provider-svn
> Affects Versions: 1.6
> Reporter: Petr Kozelka
> Assignee: Olivier Lamy
> Fix For: 1.7
>
> Attachments: scm-richmodel-bazaar.patch, scm-richmodel-git.patch, scm-richmodel-model.patch, scm-richmodel-svn.patch
>
>
> Hello,
> I would like to get more information from SCM changelog command, and attached patches contain my proposal doing some part of this.
> There are separate patches for model and for GIT and SVN implementations, I hope it makes them easier to review.
> New functionality is mostly covered with tests.
> +Summary of proposed enhancements:+
> ChangeFile.java:
> - added: ScmFileStatus *action*
> - added: String *originalName*
> - added: String *originalRevision*
> - they all included in toString()
> ScmFileStatus.java:
> - added: *RENAMED* = new ScmFileStatus( "renamed" );
> - added: *COPIED* = new ScmFileStatus( "copied" );
> ChangeSet.java:
> - added: String *parentRevision*
> - added: Set<String> *mergedRevisions*
> - both added to toString()
> - both added to toXML() + those from ChangeFile - all values stored in elements not attributes just like the others
> GIT implementation notes (GitChangeLogConsumer):
> - besides parsing the "whatchanged" command, now the consumer can handle also many options of the "log" command and harvest most of its provided info.
> In particular, the output of "git log --format=raw -C --raw --no-abbrev" can be parsed.
> - there is a potential to simply enable parsing for some more information like committer, committerDate and treeHash, which I didn't yet (as GIT-only stuff it may require separate discussion)
> SVN implementation notes (SvnChangeLogConsumer):
> - svn action "A" (Add) translates to "added" or "copied" depending of presence of originalFile
> - svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile; _any opinions about this ?_
> - svn action "R" (Replace) translates to "updated" which IMHO has sufficiently close semantic
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (SCM-649) Enhance SCM changelog model to hold more
data about changes
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SCM-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed SCM-649.
----------------------------
Resolution: Fixed
fixed revs r1211633,r1211634 and r1211635
Thanks!
> Enhance SCM changelog model to hold more data about changes
> -----------------------------------------------------------
>
> Key: SCM-649
> URL: https://jira.codehaus.org/browse/SCM-649
> Project: Maven SCM
> Issue Type: Improvement
> Components: maven-scm-api, maven-scm-provider-git, maven-scm-provider-svn
> Affects Versions: 1.6
> Reporter: Petr Kozelka
> Assignee: Olivier Lamy
> Fix For: 1.7
>
> Attachments: scm-richmodel-git.patch, scm-richmodel-model.patch, scm-richmodel-svn.patch
>
>
> Hello,
> I would like to get more information from SCM changelog command, and attached patches contain my proposal doing some part of this.
> There are separate patches for model and for GIT and SVN implementations, I hope it makes them easier to review.
> New functionality is mostly covered with tests.
> +Summary of proposed enhancements:+
> ChangeFile.java:
> - added: ScmFileStatus *action*
> - added: String *originalName*
> - added: String *originalRevision*
> - they all included in toString()
> ScmFileStatus.java:
> - added: *RENAMED* = new ScmFileStatus( "renamed" );
> - added: *COPIED* = new ScmFileStatus( "copied" );
> ChangeSet.java:
> - added: String *parentRevision*
> - added: Set<String> *mergedRevisions*
> - both added to toString()
> - both added to toXML() + those from ChangeFile - all values stored in elements not attributes just like the others
> GIT implementation notes (GitChangeLogConsumer):
> - besides parsing the "whatchanged" command, now the consumer can handle also many options of the "log" command and harvest most of its provided info.
> In particular, the output of "git log --format=raw -C --raw --no-abbrev" can be parsed.
> - there is a potential to simply enable parsing for some more information like committer, committerDate and treeHash, which I didn't yet (as GIT-only stuff it may require separate discussion)
> SVN implementation notes (SvnChangeLogConsumer):
> - svn action "A" (Add) translates to "added" or "copied" depending of presence of originalFile
> - svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile; _any opinions about this ?_
> - svn action "R" (Replace) translates to "updated" which IMHO has sufficiently close semantic
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SCM-649) Enhance SCM changelog model to hold more data
about changes
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SCM-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed SCM-649.
----------------------------
Resolution: Fixed
bazaar in r1212880
Thanks
> Enhance SCM changelog model to hold more data about changes
> -----------------------------------------------------------
>
> Key: SCM-649
> URL: https://jira.codehaus.org/browse/SCM-649
> Project: Maven SCM
> Issue Type: Improvement
> Components: maven-scm-api, maven-scm-provider-bazaar, maven-scm-provider-git, maven-scm-provider-svn
> Affects Versions: 1.6
> Reporter: Petr Kozelka
> Assignee: Olivier Lamy
> Fix For: 1.7
>
> Attachments: scm-richmodel-bazaar.patch, scm-richmodel-git.patch, scm-richmodel-model.patch, scm-richmodel-svn.patch
>
>
> Hello,
> I would like to get more information from SCM changelog command, and attached patches contain my proposal doing some part of this.
> There are separate patches for model and for GIT and SVN implementations, I hope it makes them easier to review.
> New functionality is mostly covered with tests.
> +Summary of proposed enhancements:+
> ChangeFile.java:
> - added: ScmFileStatus *action*
> - added: String *originalName*
> - added: String *originalRevision*
> - they all included in toString()
> ScmFileStatus.java:
> - added: *RENAMED* = new ScmFileStatus( "renamed" );
> - added: *COPIED* = new ScmFileStatus( "copied" );
> ChangeSet.java:
> - added: String *parentRevision*
> - added: Set<String> *mergedRevisions*
> - both added to toString()
> - both added to toXML() + those from ChangeFile - all values stored in elements not attributes just like the others
> GIT implementation notes (GitChangeLogConsumer):
> - besides parsing the "whatchanged" command, now the consumer can handle also many options of the "log" command and harvest most of its provided info.
> In particular, the output of "git log --format=raw -C --raw --no-abbrev" can be parsed.
> - there is a potential to simply enable parsing for some more information like committer, committerDate and treeHash, which I didn't yet (as GIT-only stuff it may require separate discussion)
> SVN implementation notes (SvnChangeLogConsumer):
> - svn action "A" (Add) translates to "added" or "copied" depending of presence of originalFile
> - svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile; _any opinions about this ?_
> - svn action "R" (Replace) translates to "updated" which IMHO has sufficiently close semantic
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SCM-649) Enhance SCM changelog model to hold
more data about changes
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SCM-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=284962#comment-284962 ]
Olivier Lamy commented on SCM-649:
----------------------------------
very nice patch!
As a huge peace of code, could you send a cla to ASF ?
See http://www.apache.org/licenses/ section "Contributor License Agreements".
Let me know when it's done.
> Enhance SCM changelog model to hold more data about changes
> -----------------------------------------------------------
>
> Key: SCM-649
> URL: https://jira.codehaus.org/browse/SCM-649
> Project: Maven SCM
> Issue Type: Improvement
> Components: maven-scm-api, maven-scm-provider-git, maven-scm-provider-svn
> Affects Versions: 1.6
> Reporter: Petr Kozelka
> Assignee: Olivier Lamy
> Fix For: 1.7
>
> Attachments: scm-richmodel-git.patch, scm-richmodel-model.patch, scm-richmodel-svn.patch
>
>
> Hello,
> I would like to get more information from SCM changelog command, and attached patches contain my proposal doing some part of this.
> There are separate patches for model and for GIT and SVN implementations, I hope it makes them easier to review.
> New functionality is mostly covered with tests.
> +Summary of proposed enhancements:+
> ChangeFile.java:
> - added: ScmFileStatus *action*
> - added: String *originalName*
> - added: String *originalRevision*
> - they all included in toString()
> ScmFileStatus.java:
> - added: *RENAMED* = new ScmFileStatus( "renamed" );
> - added: *COPIED* = new ScmFileStatus( "copied" );
> ChangeSet.java:
> - added: String *parentRevision*
> - added: Set<String> *mergedRevisions*
> - both added to toString()
> - both added to toXML() + those from ChangeFile - all values stored in elements not attributes just like the others
> GIT implementation notes (GitChangeLogConsumer):
> - besides parsing the "whatchanged" command, now the consumer can handle also many options of the "log" command and harvest most of its provided info.
> In particular, the output of "git log --format=raw -C --raw --no-abbrev" can be parsed.
> - there is a potential to simply enable parsing for some more information like committer, committerDate and treeHash, which I didn't yet (as GIT-only stuff it may require separate discussion)
> SVN implementation notes (SvnChangeLogConsumer):
> - svn action "A" (Add) translates to "added" or "copied" depending of presence of originalFile
> - svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile; _any opinions about this ?_
> - svn action "R" (Replace) translates to "updated" which IMHO has sufficiently close semantic
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SCM-649) Enhance SCM changelog model to hold
more data about changes
Posted by "Petr Kozelka (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SCM-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285387#comment-285387 ]
Petr Kozelka commented on SCM-649:
----------------------------------
... cannot add bazaar component to Jira issue, so I guess next time it's better to make a new one with link here
> Enhance SCM changelog model to hold more data about changes
> -----------------------------------------------------------
>
> Key: SCM-649
> URL: https://jira.codehaus.org/browse/SCM-649
> Project: Maven SCM
> Issue Type: Improvement
> Components: maven-scm-api, maven-scm-provider-git, maven-scm-provider-svn
> Affects Versions: 1.6
> Reporter: Petr Kozelka
> Assignee: Olivier Lamy
> Fix For: 1.7
>
> Attachments: scm-richmodel-bazaar.patch, scm-richmodel-git.patch, scm-richmodel-model.patch, scm-richmodel-svn.patch
>
>
> Hello,
> I would like to get more information from SCM changelog command, and attached patches contain my proposal doing some part of this.
> There are separate patches for model and for GIT and SVN implementations, I hope it makes them easier to review.
> New functionality is mostly covered with tests.
> +Summary of proposed enhancements:+
> ChangeFile.java:
> - added: ScmFileStatus *action*
> - added: String *originalName*
> - added: String *originalRevision*
> - they all included in toString()
> ScmFileStatus.java:
> - added: *RENAMED* = new ScmFileStatus( "renamed" );
> - added: *COPIED* = new ScmFileStatus( "copied" );
> ChangeSet.java:
> - added: String *parentRevision*
> - added: Set<String> *mergedRevisions*
> - both added to toString()
> - both added to toXML() + those from ChangeFile - all values stored in elements not attributes just like the others
> GIT implementation notes (GitChangeLogConsumer):
> - besides parsing the "whatchanged" command, now the consumer can handle also many options of the "log" command and harvest most of its provided info.
> In particular, the output of "git log --format=raw -C --raw --no-abbrev" can be parsed.
> - there is a potential to simply enable parsing for some more information like committer, committerDate and treeHash, which I didn't yet (as GIT-only stuff it may require separate discussion)
> SVN implementation notes (SvnChangeLogConsumer):
> - svn action "A" (Add) translates to "added" or "copied" depending of presence of originalFile
> - svn action "M" (Modified) always translates to "modified" no matter if there is an originalFile; _any opinions about this ?_
> - svn action "R" (Replace) translates to "updated" which IMHO has sufficiently close semantic
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira