Revert() public abstract méthode

public abstract Revert ( FilePath paths, bool recurse, IProgressMonitor monitor ) : void
paths FilePath
recurse bool
monitor IProgressMonitor
Résultat void
 protected override void OnRevert(FilePath[] localPaths, bool recurse, ProgressMonitor monitor)
 {
     // If we have an array of paths such as: new [] { "/Foo/Directory", "/Foo/Directory/File1", "/Foo/Directory/File2" }
     // svn will successfully revert the first entry (the directory) and then throw an error when trying to revert the
     // second and third entries because by reverting the directory the files are implicitly reverted. Try to work around
     // this issue.
     Array.Sort <FilePath> (localPaths, (a, b) => b.CompareTo(a));
     Svn.Revert(localPaths, recurse, monitor);
 }