Bug 3176 - Reverting a recently added file causes an exception
Summary: Reverting a recently added file causes an exception
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 09:44 UTC by Alan McGovern
Modified: 2012-02-05 06:42 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 09:44:03 UTC
1) Create a project under SVN version control
2) Add a new directory
3) Revert the directory
4) Add a new file to the directory
5) The directory automatically becomes versionned
6) Open the Review Status window
7) Revert all changes in the project


Version control operation failed: '/Users/alanmcgovern/Projects/SvnAndGitSampleProject/SvnAndGitSampleProject/NewDirectory/NewFile.cs' is not a working copy. 

MonoDevelop.VersionControl.Subversion.SubversionException: '/Users/alanmcgovern/Projects/SvnAndGitSampleProject/SvnAndGitSampleProject/NewDirectory/NewFile.cs' is not a working copy
  at MonoDevelop.VersionControl.Subversion.Unix.SvnClient.CheckError (IntPtr error) [0x0007c] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion.Unix/MonoDevelop.VersionControl.Subversion.Unix/SvnClient.cs:968 
  at MonoDevelop.VersionControl.Subversion.Unix.SvnClient.Revert (MonoDevelop.Core.FilePath[] paths, Boolean recurse, IProgressMonitor monitor) [0x000d1] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion.Unix/MonoDevelop.VersionControl.Subversion.Unix/SvnClient.cs:568 
  at MonoDevelop.VersionControl.Subversion.SubversionRepository.Revert (MonoDevelop.Core.FilePath[] localPaths, Boolean recurse, IProgressMonitor monitor) [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion/MonoDevelop.VersionControl.Subversion/SubversionRepository.cs:219 
  at MonoDevelop.VersionControl.RevertCommand+RevertWorker.Run () [0x00017] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/RevertCommand.cs:60 
  at MonoDevelop.VersionControl.Task.BackgroundWorker (System.Object state) [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Task.cs:49