diff options
author | Therzok <teromario@yahoo.com> | 2013-07-16 13:56:27 +0400 |
---|---|---|
committer | Therzok <teromario@yahoo.com> | 2013-07-16 13:56:27 +0400 |
commit | 79ab038b595d5eacee0e48a6679f4f0f3d7a262e (patch) | |
tree | 21e4c9d3cf9ca2a3920b471c1600e274431ce64f /extras | |
parent | 7b14725a3e6aac063d4ed380e9d588a309cd7638 (diff) |
[Version Control] Fixup exception handling.
Diffstat (limited to 'extras')
-rw-r--r-- | extras/VersionControl.Subversion.Win32/VersionControl.Subversion.Win32/SvnSharpClient.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/VersionControl.Subversion.Win32/VersionControl.Subversion.Win32/SvnSharpClient.cs b/extras/VersionControl.Subversion.Win32/VersionControl.Subversion.Win32/SvnSharpClient.cs index 19e88621b9..00ded6c347 100644 --- a/extras/VersionControl.Subversion.Win32/VersionControl.Subversion.Win32/SvnSharpClient.cs +++ b/extras/VersionControl.Subversion.Win32/VersionControl.Subversion.Win32/SvnSharpClient.cs @@ -211,7 +211,9 @@ namespace SubversionAddinWindows client.Write (new SvnUriTarget (target.Uri.AbsoluteUri + repositoryPath, GetRevision (revision)), ms);
} catch (SvnFileSystemException e) {
// File got added/deleted at some point.
- return "";
+ if (e.SubversionErrorCode == SvnErrorCode.SVN_ERR_FS_NOT_FOUND)
+ return "";
+ throw;
}
}
return TextFile.ReadFile (repositoryPath, ms).Text;
|