コード例 #1
0
        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);
                }
            }
        }
コード例 #2
0
 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;
         }
     }
 }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: SvnCleanTree.cs プロジェクト: vardars/ci-factory
        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);
            }
        }
コード例 #5
0
ファイル: SvnFunctions.cs プロジェクト: vardars/ci-factory
 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;
         }
     }
 }
コード例 #6
0
 private void HoldStatus(IntPtr baton, SvnPath path, SvnWcStatus2 status)
 {
     this.Status = status;
 }