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; } } }
public HgFileInfo this[string fileName] { get { HgFileInfo fileInfo = null; if (!String.IsNullOrEmpty(fileName)) { lock (SyncRoot) { items.TryGetValue(fileName, out fileInfo); } } return(fileInfo); } }
public bool Equals(HgFileInfo file) { return(StringComparer.InvariantCultureIgnoreCase.Equals((string)FullName, file.FullName)); }