VCS:Checkin Follow
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 ?
Please sign in to leave a comment.
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...
>
VirtualFile[], checkinMessage);
>
will actually perform the checkin.
>
I get "Check-in action completed successfully", without any call to the
effectively checkin routine.
>
>
Thank you for you answer,
why does AbstractVcsHelper.getInstance(project).doCheckinFiles(<![CDATA[, ]]>); 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 ?
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...
>
AbstractVcsHelper.getInstance(project).doCheckinFiles(<![CDATA[, ); do not often call the checkin() method of my adapter (extended from AbstractVcs) ? >]]>
>
>
>
>
>