When the file is moved to a new location, the file.getPath() still returns the old path. while LocalFileSystem.findFileByPath does not recognize the old path.
There used to be a method in the VirtualFile to get the upto date file path after taking move/rename refactoring into account. Can't find that anywhere now. Is there a method we can use to get to the new location ?
When the file is moved to a new location, the file.getPath() still returns the old path. while LocalFileSystem.findFileByPath does not recognize the old path.
>
There used to be a method in the VirtualFile to get the upto date file
path
after taking move/rename refactoring into account. Can't find that
anywhere
now. Is there a method we can use to get to the new location ?
When the file is moved to a new location, the file.getPath() still returns
the old path. while LocalFileSystem.findFileByPath does not recognize the
old path.
There used to be a method in the VirtualFile to get the upto date file path
after taking move/rename refactoring into account. Can't find that anywhere
now. Is there a method we can use to get to the new location ?
-Dash.
"Debabrata Dash" <dash@arcsightnospam.com> wrote in message
news:br2v0u$6ru$1@is.intellij.net...
>
>
>
Never mind I found the method to get uptodate file path in
AbstractVcsHelper.
and LocalVcs has the revision history for a file. But still don't know what
to pass in the label argument.
-Dash.
"Debabrata Dash" <dash@arcsightnospam.com> wrote in message
news:br35cm$6g2$1@is.intellij.net...
>
path
anywhere
>
>
>
>
LocalVcs.getAllLabels() or LvcsRevision.getImplicitLabel()
--
Best regards,
Olesya Smirnova
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
"Debabrata Dash" <dash@arcsightnospam.com> wrote in message
news:br3bop$58u$1@is.intellij.net...
>
what
>
>
returns
the
>
>