diff options
author | Therzok <teromario@yahoo.com> | 2013-07-16 14:23:33 +0400 |
---|---|---|
committer | Therzok <teromario@yahoo.com> | 2013-07-16 14:23:33 +0400 |
commit | d2165fd86e7dace05fdd13dc78a1c834cf11dccc (patch) | |
tree | 482746d75e4fa943c8f55156bbb98da8f0fccd1e /extras | |
parent | 79ab038b595d5eacee0e48a6679f4f0f3d7a262e (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.cs | 7 |
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;
}
|