[ https://issues.apache.org/jira/browse/SCM-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17962423#comment-17962423 ]
ASF GitHub Bot commented on SCM-649: ------------------------------------ jira-importer commented on issue #861: URL: https://github.com/apache/maven-scm/issues/861#issuecomment-2964629917 **[Petr Kozelka](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=pkozelka)** commented ... 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://issues.apache.org/jira/browse/SCM-649 > Project: Maven SCM (Moved to GitHub Issues) > Issue Type: Improvement > Components: maven-scm-api, maven-scm-provider-bazaar, > maven-scm-provider-gitexe, maven-scm-provider-svn > Affects Versions: 1.6 > Reporter: Petr Kozelka > Assignee: Olivier Lamy > Priority: Major > 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 was sent by Atlassian Jira (v8.20.10#820010)