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

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

            AddRoot(root);

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