Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorTherzok <teromario@yahoo.com>2013-07-16 14:23:33 +0400
committerTherzok <teromario@yahoo.com>2013-07-16 14:23:33 +0400
commitd2165fd86e7dace05fdd13dc78a1c834cf11dccc (patch)
tree482746d75e4fa943c8f55156bbb98da8f0fccd1e /extras
parent79ab038b595d5eacee0e48a6679f4f0f3d7a262e (diff)
[Version Control] Log Widget
Trim down number of swallowed exceptions again. Don't allow expanding directories.
Diffstat (limited to 'extras')
-rw-r--r--extras/VersionControl.Subversion.Win32/VersionControl.Subversion.Win32/SvnSharpClient.cs7
1 files changed, 6 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 00ded6c347..17203b38bf 100644
--- a/extras/VersionControl.Subversion.Win32/VersionControl.Subversion.Win32/SvnSharpClient.cs
+++ b/extras/VersionControl.Subversion.Win32/VersionControl.Subversion.Win32/SvnSharpClient.cs
@@ -211,7 +211,12 @@ namespace SubversionAddinWindows
client.Write (new SvnUriTarget (target.Uri.AbsoluteUri + repositoryPath, GetRevision (revision)), ms);
} catch (SvnFileSystemException e) {
// File got added/deleted at some point.
- if (e.SubversionErrorCode == SvnErrorCode.SVN_ERR_FS_NOT_FOUND)
+ if (e.SvnErrorCode == SvnErrorCode.SVN_ERR_FS_NOT_FOUND)
+ return "";
+ throw;
+ } catch (SvnClientNodeKindException e) {
+ // We're trying on a directory.
+ if (e.SvnErrorCode == SvnErrorCode.SVN_ERR_CLIENT_IS_DIRECTORY)
return "";
throw;
}