Exemple #1
0
 public PendingChange(HgFileInfo file)
 {
     ShortName = file.ShortName;
     RootName  = file.RootName;
     Status    = file.Status;
     Name      = file.Name;
     FullName  = file.FullName;
 }
 public void Add(HgFileInfo[] files)
 {
     lock (SyncRoot)
     {
         foreach (var file in files)
         {
             items[file.FullName] = file;
         }
     }
 }
Exemple #3
0
        public HgFileInfo this[string fileName]
        {
            get
            {
                HgFileInfo fileInfo = null;

                if (!String.IsNullOrEmpty(fileName))
                {
                    lock (SyncRoot)
                    {
                        items.TryGetValue(fileName, out fileInfo);
                    }
                }

                return(fileInfo);
            }
        }
Exemple #4
0
 public bool Equals(HgFileInfo file)
 {
     return(StringComparer.InvariantCultureIgnoreCase.Equals((string)FullName, file.FullName));
 }