Browse Source

Fix SD-1502 - SvnClientException when adding a version controlled file into a non-version controlled folder

pull/14/head
Matt Ward 15 years ago
parent
commit
5adb337836
  1. 6
      src/AddIns/VersionControl/SubversionAddIn/Src/Commands/AutostartCommands.cs

6
src/AddIns/VersionControl/SubversionAddIn/Src/Commands/AutostartCommands.cs

@ -314,6 +314,8 @@ namespace ICSharpCode.Svn.Commands @@ -314,6 +314,8 @@ namespace ICSharpCode.Svn.Commands
if (!AddInOptions.AutomaticallyRenameFiles) return;
string fullSource = Path.GetFullPath(e.SourceFile);
if (!CanBeVersionControlledFile(fullSource)) return;
string fullTarget = Path.GetFullPath(e.TargetFile);
if (!CanBeVersionControlledFile(fullTarget)) return;
try {
using (SvnClientWrapper client = new SvnClientWrapper()) {
SvnMessageView.HandleNotifications(client);
@ -335,9 +337,7 @@ namespace ICSharpCode.Svn.Commands @@ -335,9 +337,7 @@ namespace ICSharpCode.Svn.Commands
return;
}
e.OperationAlreadyDone = true;
client.Copy(fullSource,
Path.GetFullPath(e.TargetFile)
);
client.Copy(fullSource, fullTarget);
}
} catch (Exception ex) {
MessageService.ShowError("File renamed exception: " + ex);

Loading…
Cancel
Save