Skip to content

Commit

Permalink
Resolve an issue on PhpStorm 7.1 when the svn version is 1.8 and plat…
Browse files Browse the repository at this point in the history
…form is MaxOS.

Not sure the issue was caused by svn 1.8 or API changes of Svn plugin.
  • Loading branch information
kaneg committed Jun 16, 2014
1 parent a673dde commit 030de37
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rb/PostReviewAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ private void execute(final Project project, SvnVcs svnVcs, VirtualFile[] vFiles,
if (vf != null) {
vf.refresh(false, true);
File workingCopyRoot = SvnUtil.getWorkingCopyRoot(new File(vf.getPath()));
if (workingCopyRoot == null) {
workingCopyRoot = SvnUtil.getWorkingCopyRootNew(new File(vf.getPath()));
}
if (workingCopyRoot == null) {
Messages.showWarningDialog("Cann't get working copy root of the file:" + vf.getPath(), "Error");
return;
}
System.out.println("workcopyroot:" + workingCopyRoot);
if (localRootDir == null && workingCopyRoot != null) {
localRootDir = workingCopyRoot.getPath();
Expand Down

0 comments on commit 030de37

Please sign in to comment.