Bug 3178 - [svn] ArrayIndexOutOfRange when viewing diffs
Summary: [svn] ArrayIndexOutOfRange when viewing diffs
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
Depends on:
Reported: 2012-02-01 10:22 UTC by Alan McGovern
Modified: 2012-02-01 12:26 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Alan McGovern 2012-02-01 10:22:15 UTC
1) Add a new directory to a project under svn control
2) Add a new file to that directory
3) Review changes on the project
4) Expand the diff for the csproj file

Could not get diff information. Array index is out of range.

System.IndexOutOfRangeException: Array index is out of range.
  at MonoDevelop.VersionControl.Subversion.SubversionRepository.GenerateDiff (FilePath baseLocalPath, MonoDevelop.VersionControl.VersionInfo versionInfo) [0x0001f] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion/MonoDevelop.VersionControl.Subversion/SubversionRepository.cs:486 
  at MonoDevelop.VersionControl.Views.StatusView+<LoadDiffs>c__AnonStorey1E.<>m__49 (System.Object ) [0x0003b] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/StatusView.cs:945
Comment 1 Alan McGovern 2012-02-01 12:26:03 UTC
This is caused because we cannot generate a valid diff for the directory (as expected). Fixed in git.