mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-54047 Subversion: in CreateBranch dialog browse button doesn't work for Base URL if the working copy lies below the project directory and default VCS mapping is used
This commit is contained in:
@@ -84,6 +84,7 @@ public class CopyDialog extends DialogWrapper {
|
||||
@NonNls private static final String HELP_ID = "vcs.subversion.branch";
|
||||
private SvnBranchConfigurationNew myBranchConfiguration;
|
||||
private final VirtualFile mySrcVirtualFile;
|
||||
private final String myWcRootUrl;
|
||||
|
||||
public CopyDialog(final Project project, boolean canBeParent, File file) throws VcsException {
|
||||
super(project, canBeParent);
|
||||
@@ -139,6 +140,7 @@ public class CopyDialog extends DialogWrapper {
|
||||
throw new VcsException("Can not find working copy for file: " + file.getPath());
|
||||
}
|
||||
this.mySrcVirtualFile = srcVirtualFile;
|
||||
myWcRootUrl = root.getUrl();
|
||||
|
||||
myRevisionPanel.setRoot(mySrcVirtualFile);
|
||||
myRevisionPanel.setProject(myProject);
|
||||
@@ -174,7 +176,7 @@ public class CopyDialog extends DialogWrapper {
|
||||
updateToURL();
|
||||
myProjectButton.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
myRepositoryField.setText(myBranchConfiguration.getBaseUrl(mySrcURL));
|
||||
myRepositoryField.setText(myWcRootUrl);
|
||||
}
|
||||
});
|
||||
myBranchTagBaseComboBox.addActionListener(new ActionListener() {
|
||||
|
||||
Reference in New Issue
Block a user