protected void UpdateRootStatusProtected(string path) { var root = HgPath.FindRepositoryRoot(path); if (String.IsNullOrEmpty(root)) { return; } AddRoot(root); Cache(Hg.GetRootStatus(root)); }
public HgFileInfo(string root, string name, char status) { Root = root; Name = name; _status = Hg.ConvertToStatus(status); RootName = new DirectoryInfo(root).Name; ShortName = Path.GetFileName(name); FullName = Path.Combine(root, name); if (Status != HgFileStatus.None && !StatusMatches(HgFileStatus.Deleted)) { InitializeFileProperties(FullName); } }
protected void UpdateFileStatusProtected(string[] fileNames) { Cache(Hg.GetFileInfo(fileNames)); }
protected void RenameFilesProtected(string[] fileNames, string[] newFileNames) { cache.Remove(fileNames.Concat(newFileNames)); Cache(Hg.RenameFiles(fileNames, newFileNames)); }
protected void RemoveFilesProtected(string[] fileNames) { Cache(Hg.RemoveFiles(fileNames)); }
protected void AddFilesProtected(string[] fileNames) { Cache(Hg.AddFiles(fileNames, HgFileStatus.NotTracked | HgFileStatus.Removed)); }