public static SVNAction ToSVNAction(SvnChangeAction action)
        {
            SvnChangeAction tempAnotherLocal0 = action;
            if (tempAnotherLocal0 <= SvnChangeAction.Add)
            {
                if ((tempAnotherLocal0 != SvnChangeAction.None) && (tempAnotherLocal0 == SvnChangeAction.Add))
                {
                    return SVNAction.Added;
                }
            }
            else
            {
                switch (tempAnotherLocal0)
                {
                    case SvnChangeAction.Delete:
                        return SVNAction.Deleted;

                    case SvnChangeAction.Modify:
                        return SVNAction.Modified;

                    case SvnChangeAction.Replace:
                        return SVNAction.Replaced;
                }
            }
            return SVNAction.Added;
        }
Example #2
0
        static RevisionAction ConvertRevisionAction(SvnChangeAction svnChangeAction)
        {
            switch (svnChangeAction)
            {
            case SvnChangeAction.Add: return(RevisionAction.Add);

            case SvnChangeAction.Delete: return(RevisionAction.Delete);

            case SvnChangeAction.Modify: return(RevisionAction.Modify);

            case SvnChangeAction.Replace: return(RevisionAction.Replace);
            }
            return(RevisionAction.Other);
        }
		public static string GetActionString(SvnChangeAction action)
		{
			switch (action) {
				case SvnChangeAction.Add:
					return GetActionString(SvnNotifyAction.CommitAdded);
				case SvnChangeAction.Delete:
					return GetActionString(SvnNotifyAction.CommitDeleted);
				case SvnChangeAction.Modify:
					return GetActionString(SvnNotifyAction.CommitModified);
				case SvnChangeAction.Replace:
					return GetActionString(SvnNotifyAction.CommitReplaced);
				default:
					return "unknown";
			}
		}
 private string SvnChangeActionToChangeType(SvnChangeAction changeAction)
 {
     if (changeAction == SvnChangeAction.Add)
     {
         return(ChangeType.Added);
     }
     if (changeAction == SvnChangeAction.Modify)
     {
         return(ChangeType.Modified);
     }
     if (changeAction == SvnChangeAction.Delete)
     {
         return(ChangeType.Deleted);
     }
     return(ChangeType.Unmodified);
 }
        private static RepositoryItemAction SvnAction2ItemAction(SvnChangeAction svnChangeAction)
        {
            switch (svnChangeAction)
              {
            case SvnChangeAction.Add:
              return RepositoryItemAction.Add;
            case SvnChangeAction.Delete:
              return RepositoryItemAction.Delete;
            case SvnChangeAction.Modify:
              return RepositoryItemAction.Modifiy;
            case SvnChangeAction.Replace:
              return RepositoryItemAction.Replace;
              }

              return RepositoryItemAction.None;
        }
Example #6
0
        private static string SvnChangeTypeString(SvnChangeAction act)
        {
            switch (act)
            {
            case SvnChangeAction.Add:
                return("add");

            case SvnChangeAction.Delete:
                return("del");

            case SvnChangeAction.Modify:
                return("mod");

            case SvnChangeAction.Replace:
                return("rep");
            }
            return("non");
        }
Example #7
0
        public static string GetActionString(SvnChangeAction action)
        {
            switch (action)
            {
            case SvnChangeAction.Add:
                return(GetActionString(SvnNotifyAction.CommitAdded));

            case SvnChangeAction.Delete:
                return(GetActionString(SvnNotifyAction.CommitDeleted));

            case SvnChangeAction.Modify:
                return(GetActionString(SvnNotifyAction.CommitModified));

            case SvnChangeAction.Replace:
                return(GetActionString(SvnNotifyAction.CommitReplaced));

            default:
                return("unknown");
            }
        }
Example #8
0
            private FileState ConvertFrom(SvnChangeAction action)
            {
                switch (action)
                {
                case SvnChangeAction.Add:
                    return(FileState.Added);

                case SvnChangeAction.Delete:
                    return(FileState.Deleted);

                case SvnChangeAction.Modify:
                    return(FileState.Modified);

                case SvnChangeAction.Replace:
                    return(FileState.Moved);

                default:
                    return(FileState.None);
                }
            }
Example #9
0
        static Change ConvertActionToChange(SvnChangeAction action)
        {
            switch (action)
            {
            case SvnChangeAction.Add:
                return(Change.Add);

            case SvnChangeAction.Modify:
                return(Change.Modify);

            case SvnChangeAction.Delete:
                return(Change.Delete);

            case SvnChangeAction.Replace:
                return(Change.Replace);

            default:
                throw new Exception("Invalid SvnChangeAction: " + (int)action);
            }
        }
		private static FileActionEnum SvnChangeActionToFileActionEnum(SvnChangeAction action)
		{
			var fileAction = FileActionEnum.None;
			switch (action)
			{
				case SvnChangeAction.Add:
					fileAction = FileActionEnum.Add;
					break;

				case SvnChangeAction.Delete:
					fileAction = FileActionEnum.Delete;
					break;

				case SvnChangeAction.Modify:
					fileAction = FileActionEnum.Modify;
					break;

				case SvnChangeAction.Replace:
					fileAction = FileActionEnum.Rename;
					break;
			}
			return fileAction;
		}
        private static FileActionEnum SvnChangeActionToFileActionEnum(SvnChangeAction action)
        {
            var fileAction = FileActionEnum.None;

            switch (action)
            {
            case SvnChangeAction.Add:
                fileAction = FileActionEnum.Add;
                break;

            case SvnChangeAction.Delete:
                fileAction = FileActionEnum.Delete;
                break;

            case SvnChangeAction.Modify:
                fileAction = FileActionEnum.Modify;
                break;

            case SvnChangeAction.Replace:
                fileAction = FileActionEnum.Rename;
                break;
            }
            return(fileAction);
        }
Example #12
0
		static RevisionAction ConvertRevisionAction (SvnChangeAction svnChangeAction)
		{
			switch (svnChangeAction) {
				case SvnChangeAction.Add: return RevisionAction.Add;
				case SvnChangeAction.Delete: return RevisionAction.Delete;
				case SvnChangeAction.Modify: return RevisionAction.Modify;
				case SvnChangeAction.Replace: return RevisionAction.Replace;
			}
			return RevisionAction.Other;
		}
 public SimplifiedSvnChangeItem(long revision, string path, SvnChangeAction action, SvnNodeKind nodeKind, string copyFromPath, long copyFromRevision)
     : this(revision, path, action, nodeKind)
 {
     CopyFromPath     = copyFromPath;
     CopyFromRevision = copyFromRevision;
 }
 public SimplifiedSvnChangeItem(long revision, string path, SvnChangeAction action, SvnNodeKind nodeKind)
 {
     Revision = revision; Path = path; Action = action; NodeKind = nodeKind;
 }
Example #15
0
 public ChangedPath(SvnChangeItem e)
 {
     action = e.Action;
     path   = e.Path;
 }