Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-vcm-dev] Validate on commit

There is no such extension at the moment.  To get a feel for the need for
this, information on the following would be helpful:

  - the usage case,
  - why you need to do this in Eclipse instead of using the server
commitinfo, and
  - if others in the community require such a thing.


Technically, I see the following issues:

1. Ensuring there is no performance penalty for the case where there is no
verification required.

2. Does failure of one file mean failure of the entire commit?

3. How do you handle multiple plugins using the same extension:  what order
do the commit validators run in, if one fails is it failure for the other
validators, etc?

4.  What does the extension point look like?  For example, what contextual
information would the validator require (is it just the file that's being
committed?).

Feel free to add an enhancement bug report with your proposed design and
thoughts on these questions.

Cheers,
Kevin





                                                                                                                
                      birdo@xxxxxxxxxxxx                                                                        
                      (Roberto Scaramuzzi)            To:      platform-vcm-dev@xxxxxxxxxxx                     
                      Sent by:                        cc:                                                       
                      platform-vcm-dev-admin@         Subject: [platform-vcm-dev] Validate on commit            
                      eclipse.org                                                                               
                                                                                                                
                                                                                                                
                      10/03/2002 02:03 PM                                                                       
                      Please respond to                                                                         
                      platform-vcm-dev                                                                          
                                                                                                                
                                                                                                                



We want to be able to run a check on files before they are committed and
abort the commit (or maybe display a confirm dialog) if the result is
negative. This is similar to the CVS commitinfo mechanism, but it would
happen on the user's machine (in fact inside Eclipse) rather than on the
CVS
server

I looked into the org.eclipse.core.resources.fileModificationValidator
extension point, but it doesn't seem to do what we want.

Did I miss something? Is there another way to do what I want with the
current
API?

If not, would it be possible to add an extension point to the Team plugin
that would be accessible by non-team plugins and would provide for what we
want?
--
Roberto Scaramuzzi
System Engineer
Parasoft, Inc.
_______________________________________________
platform-vcm-dev mailing list
platform-vcm-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-vcm-dev






Back to the top