| Summary: | Auto-populate commit message | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Andrew Overholt <overholt> |
| Component: | CVS | Assignee: | platform-cvs-inbox <platform-cvs-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | pmuldoon |
| Version: | 3.1 | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Andrew Overholt
First of all, we must keep in mind that some servers specify a commit template
that is to be used. This could potentially conflict with any commit comment
generated by the ChangeLog plugin.
Now, if we were to address this properly, what we would need is an extension
point in CVS where 3rd parties (i.e. the ChangeLog plugin) could register a
commit comment generator. Ideally the user could identify which comment
generator to use on a project by project basis (thus dealing with the presence
or absence of the ChangeLog plugin or any other plugin that generated
comments). The default generator would use the template from the server or the
comment from an outgoing change set if one is defined for the files being
committed.
I would suggest that the extension point class look something like this
public abstract class CommitCommentGenerator {
public abstract String generateComment(SyncInfoSet set);
}
The SyncInfoSet would contain all the files that are being committed.
The main stumbling block here is that the CVS plugin has no official API. We
would need to decide whether this should be offical API or something that is
internal that clients use anyway (like everything else in the CVS plugins).
We do not plan on addressing this issue but we will consider patches. |