public void Clean(IntPtr baton, SvnPath path, SvnWcStatus2 status) { if (status == null) { throw new ArgumentNullException("status"); } if (status.TextStatus == SvnWcStatus.Kind.Unversioned || status.TextStatus == SvnWcStatus.Kind.Ignored) { string FullPath = Path.Combine(this.Directory, path.Value); if (File.Exists(FullPath)) { File.Delete(FullPath); } else if (System.IO.Directory.Exists(FullPath)) { That.Computer.FileSystem.DeleteDirectory(FullPath, Microsoft.VisualBasic.FileIO.DeleteDirectoryOption.DeleteAllContents); } else { throw new BuildException(string.Format("Something fishy, {0}, does not seem to exist yet an svn status says it does.", FullPath), this.Location); } } }
public void Record(IntPtr baton, SvnPath path, SvnWcStatus2 status) { if (path.Value.ToLower() == this.QueryPath.ToLower()) { this.IsVersionedReturnValue = true; if (status.TextStatus == SvnWcStatus.Kind.Unversioned || status.TextStatus == SvnWcStatus.Kind.Ignored) { this.IsVersionedReturnValue = false; } } }
private bool OkayToDelete(string FullPath) { this.Status = null; this.Client.Status2(FullPath, new SvnRevision(Svn.Revision.Head), new SvnWcStatus2.Func(this.HoldStatus), IntPtr.Zero, false, true, false, false, false); if (this.Status == null) { return(true); } bool okayToDelete = this.Status.TextStatus == SvnWcStatus.Kind.Unversioned || this.Status.TextStatus == SvnWcStatus.Kind.Ignored; return(okayToDelete); }
public void Clean(IntPtr baton, SvnPath path, SvnWcStatus2 status) { if (status == null) throw new ArgumentNullException("status"); if (status.TextStatus == SvnWcStatus.Kind.Unversioned || status.TextStatus == SvnWcStatus.Kind.Ignored) { string FullPath = Path.Combine(this.Directory, path.Value); if (File.Exists(FullPath)) File.Delete(FullPath); else if (System.IO.Directory.Exists(FullPath)) That.Computer.FileSystem.DeleteDirectory(FullPath, Microsoft.VisualBasic.FileIO.DeleteDirectoryOption.DeleteAllContents); else throw new BuildException(string.Format("Something fishy, {0}, does not seem to exist yet an svn status syas it does.", FullPath), this.Location); } }
private void HoldStatus(IntPtr baton, SvnPath path, SvnWcStatus2 status) { this.Status = status; }