Esempio n. 1
0
        protected void UpdateRootStatusProtected(string path)
        {
            var root = HgPath.FindRepositoryRoot(path);

            if (String.IsNullOrEmpty(root))
            {
                return;
            }

            AddRoot(root);

            Cache(Hg.GetRootStatus(root));
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 protected void UpdateFileStatusProtected(string[] fileNames)
 {
     Cache(Hg.GetFileInfo(fileNames));
 }
Esempio n. 4
0
 protected void RenameFilesProtected(string[] fileNames, string[] newFileNames)
 {
     cache.Remove(fileNames.Concat(newFileNames));
     Cache(Hg.RenameFiles(fileNames, newFileNames));
 }
Esempio n. 5
0
 protected void RemoveFilesProtected(string[] fileNames)
 {
     Cache(Hg.RemoveFiles(fileNames));
 }
Esempio n. 6
0
 protected void AddFilesProtected(string[] fileNames)
 {
     Cache(Hg.AddFiles(fileNames, HgFileStatus.NotTracked | HgFileStatus.Removed));
 }