private static ChangeType MercurialChangeStatusToChangeType(ChangesetPathActionType changeKind)
 {
     switch (changeKind)
     {
         case ChangesetPathActionType.Add:
             return ChangeType.Added;
         case ChangesetPathActionType.Remove:
             return ChangeType.Deleted;
         case ChangesetPathActionType.Modify:
             return ChangeType.Modified;
         default:
             return ChangeType.Modified;
     }
 }
        private static ChangeType MercurialChangeStatusToChangeType(ChangesetPathActionType changeKind)
        {
            switch (changeKind)
            {
            case ChangesetPathActionType.Add:
                return(ChangeType.Added);

            case ChangesetPathActionType.Remove:
                return(ChangeType.Deleted);

            case ChangesetPathActionType.Modify:
                return(ChangeType.Modified);

            default:
                return(ChangeType.Modified);
            }
        }
        public static FileActionEnum ToFileAction(this ChangesetPathActionType action)
        {
            switch (action)
            {
            case ChangesetPathActionType.Add:
                return(FileActionEnum.Add);

            case ChangesetPathActionType.Modify:
                return(FileActionEnum.Modify);

            case ChangesetPathActionType.Remove:
                return(FileActionEnum.Delete);

            default:
                return(FileActionEnum.None);
            }
        }