Exemple #1
0
        private bool Exists(ChangeItem item, HashSet <string> localFiles)
        {
            if (localFiles != null && localFiles.Any())
            {
                // Performance optimization
                return(localFiles.Contains(item.LocalPath.ToLowerInvariant()));
            }

            return(item.Exists());
        }
Exemple #2
0
        private static Artifact CreateArtifact(ChangeSet cs, ChangeItem item)
        {
            Debug.Assert(item.LocalPath != null);
            var artifact = new Artifact
            {
                Id         = item.Id,
                LocalPath  = item.LocalPath,
                ServerPath = item.ServerPath,
                Commits    = 0,

                // Item used to create sets the revision (latest)
                Revision = cs.Id,

                // Assume first item is latest revision. If this is deleted the item should no longer be on hard disk.
                IsDeleted = item.IsDelete(),

                Date = cs.Date
            };

            return(artifact);
        }
Exemple #3
0
 private bool Exists(ChangeItem item)
 {
     return(item.Exists());
 }