VCS:Checkin


In use :
AbstractVcsHelper.getInstance(project).doCheckinFiles(new VirtualFile[], checkinMessage);

To perform check-in of a file. I suppose this will call my adapter which will actually perform the checkin.

But sometimes the adapter is called, sometimes not... In this latter case I get "Check-in action completed successfully", without any call to the effectively checkin routine.

I can't understand why my adapter is not called.

Could someone help me ?

3 comments
Comment actions Permalink

Try this: LocalVcs.getInstance(project).findFile(file.getPath())
The file is not under local vcs if return value is null

--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Florent Bouvier" <no_mail@jetbrains.com> wrote in message
news:27613800.1086783802211.JavaMail.itn@is.intellij.net...
>

In use :
AbstractVcsHelper.getInstance(project).doCheckinFiles(new

VirtualFile[], checkinMessage);
>

To perform check-in of a file. I suppose this will call my adapter which

will actually perform the checkin.
>

But sometimes the adapter is called, sometimes not... In this latter case

I get "Check-in action completed successfully", without any call to the
effectively checkin routine.
>

I can't understand why my adapter is not called.

>

Could someone help me ?



0
Comment actions Permalink

Thank you for you answer,

why does AbstractVcsHelper.getInstance(project).doCheckinFiles(, ]]>); do not often call the checkin() method of my adapter (extended from AbstractVcs) ?

I can't use a LvcsFile, as it needs a VirtualFile..

Do you understand ?



0
Comment actions Permalink

VcsHelper uses the local vcs. So your file should has a lvcs copy to be
processed.

--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Florent Bouvier" <no_mail@jetbrains.com> wrote in message
news:20704581.1087195824663.JavaMail.itn@is.intellij.net...

Thank you for you answer,

>

why does

AbstractVcsHelper.getInstance(project).doCheckinFiles(, ); do not often call the checkin() method of my adapter (extended from AbstractVcs) ? >]]>

I can't use a LvcsFile, as it needs a VirtualFile..

>

Do you understand ?

>
>
>
>


0

Please sign in to leave a comment.