Example #1
0
            protected override void OnNotify(SvnNotifyEventArgs e)
            {
                base.OnNotify(e);

                string path = e.FullPath;

                SvnClientAction action;

                if (!_changes.TryGetValue(path, out action))
                {
                    _changes.Add(path, action = new SvnClientAction(path));
                }

                switch (e.Action)
                {
                case SvnNotifyAction.Revert:
                case SvnNotifyAction.TreeConflict:
                    action.Recursive = true;
                    break;

                case SvnNotifyAction.UpdateDelete:
                    action.Recursive   = true;
                    action.AddOrRemove = true;
                    break;

                case SvnNotifyAction.UpdateReplace:
                case SvnNotifyAction.UpdateAdd:
                    action.AddOrRemove = true;
                    break;

                case SvnNotifyAction.UpdateUpdate:
                    action.OldRevision = e.OldRevision;
                    break;
                }
            }
Example #2
0
            private void SC_Notify(object sender, SvnNotifyEventArgs e)
            
    {
                    notiny = string.Format("{0}:{1}.", getstringact(e.Action), new FileInfo(e.FullPath).Name);
                    ShowInfo();

                
    }
Example #3
0
 private void SvnReintegrationMergeArgsOnNotify(object sender, SvnNotifyEventArgs e)
 {
     if (e.Action == SvnNotifyAction.TreeConflict)
     {
         Logger.LogError(e.Action.ToString(), e.FullPath);
     }
     else
     {
         Logger.LogInfo(e.Action.ToString(), e.FullPath);
     }
 }
Example #4
0
        void OnNotify(object sender, SvnNotifyEventArgs e)
        {
            // Do not catalog MergeBegin
            if (e.Action == SvnNotifyAction.MergeBegin)
            {
                return;
            }

            e.Detach();

            _mergeActions.Add(e);
        }
Example #5
0
 void client_Notify(object sender, SvnNotifyEventArgs e)
 {
     if (Notify != null)
     {
         Notify(this, new NotificationEventArgs()
         {
             Action = GetActionString(e.Action),
             Kind   = GetKindString(e.NodeKind),
             Path   = e.Path
         });
     }
 }
        private void CheckoutNotificationHandler(object sender, SvnNotifyEventArgs e)
        {
            switch (e.Action)
            {
            case SvnNotifyAction.UpdateAdd: _Logger.Info(String.Format(" + added file: {0}", e.FullPath));
                break;

            case SvnNotifyAction.UpdateDelete: _Logger.Info(String.Format(" - deleted file: {0}", e.FullPath));
                break;

            case SvnNotifyAction.UpdateUpdate: _Logger.Info(String.Format(" * updated file: {0}", e.FullPath));
                break;
            }
        }
Example #7
0
        private void onSvnNotify(object sender, SvnNotifyEventArgs e)
        {
            if (e == null)
            {
                return;
            }

            if (e.CommandType.ToString() == "CheckOut" || e.CommandType.ToString() == "Update")
            {
                if (System.IO.Directory.GetCurrentDirectory() != e.FullPath)
                {
                    iSize += 1;
                    svnWorker.ReportProgress(iSize);
                }
            }
        }
Example #8
0
            protected override void OnNotify(SvnNotifyEventArgs e)
            {
                base.OnNotify(e);

                if (e.Uri != null)
                {
                    return;
                }

                string path = e.FullPath;

                if (string.IsNullOrEmpty(path))
                {
                    return;
                }

                SvnClientAction action;

                if (!_changes.TryGetValue(path, out action))
                {
                    _changes.Add(path, action = new SvnClientAction(path));
                }

                switch (e.Action)
                {
                case SvnNotifyAction.CommitDeleted:
                case SvnNotifyAction.Revert:
                case SvnNotifyAction.TreeConflict:
                case SvnNotifyAction.UpgradedDirectory:
                    action.Recursive = true;
                    break;

                case SvnNotifyAction.UpdateDelete:
                    action.Recursive   = true;
                    action.AddOrRemove = true;
                    break;

                case SvnNotifyAction.UpdateReplace:
                case SvnNotifyAction.UpdateAdd:
                    action.AddOrRemove = true;
                    break;

                case SvnNotifyAction.UpdateUpdate:
                    action.OldRevision = e.OldRevision;
                    break;
                }
            }
Example #9
0
 private void svnc_Notify(object sender, EventArgs ea)
 {
     if (this.InvokeRequired)
     {
         delEventHandler del = new delEventHandler(svnc_Notify);
         this.Invoke(del, sender, ea);
     }
     else
     {
         SvnNotifyEventArgs snea = ea as SvnNotifyEventArgs;
         if (snea.Action == SvnNotifyAction.UpdateCompleted)
         {
             isDownloading = false;
             setConfig_IsInitialized();
             MessageBox.Show("Done!");
         }
     }
 }
Example #10
0
        static void _svn_wc_notify_func2(IntPtr baton, IntPtr notifyPtr, IntPtr pool)
        {
            var client = AprBaton <SvnClient> .Get(baton);

            var aprPool = new AprPool(pool, false);

            var notify = svn_wc_notify_t.__CreateInstance(notifyPtr);

            var ea = new SvnNotifyEventArgs(notify, client.CurrentCommandArgs.CommandType, aprPool);

            try
            {
                client.HandleClientNotify(ea);
            }
            finally
            {
                ea.Detach(false);

                aprPool.Dispose();
            }
        }
Example #11
0
        protected virtual void OnClientNotify(object sender, SvnNotifyEventArgs e)
        {
            if (!Enum.IsDefined(typeof(SvnNotifyAction), e.Action))
            {
                Console.WriteLine("Enum value {0} not defined in SvnNotifyAction", e.Action);
            }

            if (e.Uri != null)
            {
            }
            else if (e.Path != null)
            {
                bool found = File.Exists(e.FullPath) || Directory.Exists(e.FullPath) || Directory.Exists(Path.GetDirectoryName(e.FullPath));

                if (e.CommandType != SvnCommandType.Blame &&
                    !(e.CommandType == SvnCommandType.Move && e.Action == SvnNotifyAction.Delete))
                {
                    Assert.That(found,
                                "{0} is not a valid path and it's directory does not exist\n (Raw value = {1}, Current Directory = {2}, Action = {3}, CommandType = {4})",
                                e.FullPath, e.Path, Environment.CurrentDirectory, e.Action, e.CommandType);
                }
            }
        }
Example #12
0
 private void client_Notify(object sender, SvnNotifyEventArgs e)
 {
     try
     {
         if (myScrollViewer.Dispatcher.CheckAccess())
         {
             if (e.Error != null)
             {
                 textBlockLog.Inlines.Add(new Run(e.Error.Message + "\r\n"));
             }
             else
             {
                 textBlockLog.Inlines.Add(new Italic(new Run(e.Action.ToString()))
                 {
                     Foreground = Brushes.Gray
                 });
                 if (e.Action == SvnNotifyAction.UpdateCompleted)
                 {
                     textBlockLog.Inlines.Add(new Run(" " + e.Path));
                 }
                 else
                 {
                     textBlockLog.Inlines.Add(new Run(" \t" + e.Path));
                 }
                 textBlockLog.Inlines.Add(new LineBreak());
             }
             myScrollViewer.ScrollToEnd();
         }
         else
         {
             myScrollViewer.Dispatcher.Invoke(new client_NotifyDelegate(client_Notify), new object[] { sender, e });
         }
     }
     catch (Exception)
     {
     }
 }
Example #13
0
 private void OnNotify(object sender, SvnNotifyEventArgs svnNotifyEventArgs)
 {
     Logging.Log().Debug($"Notify: Action: {svnNotifyEventArgs.Action}, Command Type: {svnNotifyEventArgs.CommandType}, Content State: {svnNotifyEventArgs.ContentState}, Full Path: {svnNotifyEventArgs.FullPath}");
     //this.syncLogger.Log(this.sync, $"Notify: Action: {svnNotifyEventArgs.Action}, Command Type: {svnNotifyEventArgs.CommandType}, Content State: {svnNotifyEventArgs.ContentState}, Full Path: {svnNotifyEventArgs.FullPath}");
 }
Example #14
0
 /// <summary>
 /// Callback method to be used as ClientContext.NotifyCallback
 /// </summary>
 /// <param name="notification">An object containing information about the notification</param>
 public virtual void NotifyCallback( object sender, SvnNotifyEventArgs notification )
 {
     this._notifications.Add( notification );
 }
Example #15
0
 /// <summary>
 /// Callback method to be used as ClientContext.NotifyCallback
 /// </summary>
 /// <param name="notification">An object containing information about the notification</param>
 public virtual void NotifyCallback(object sender, SvnNotifyEventArgs notification)
 {
     this._notifications.Add(notification);
 }
 private static void SvnLogArgsOnNotify(object sender, SvnNotifyEventArgs e)
 {
     Console.WriteLine(e.Path);
 }
Example #17
0
 void VerifyNotify(object sender, SvnNotifyEventArgs e)
 {
     Assert.That(File.Exists(e.FullPath), "{0} does exist; path was defined as {1}", e.FullPath, e.Path);
 }
 void CommitNotifyHandler(object sender, SvnNotifyEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine(e.Action.ToString() + " - " + e.FullPath);
 }
Example #19
0
        private void onSvnNotify(object sender, SvnNotifyEventArgs e)
        {
            if (e == null) return;

            if (e.CommandType.ToString() == "CheckOut" || e.CommandType.ToString() == "Update")
            {
                if (System.IO.Directory.GetCurrentDirectory() != e.FullPath)
                {
                    iSize += 1;
                    svnWorker.ReportProgress(iSize);
                }
            }
        }
 private static void SvnCopyArgsOnNotify(object sender, SvnNotifyEventArgs e)
 {
     Console.WriteLine(e.Uri);
 }
Example #21
0
 void VerifyNotify(object sender, SvnNotifyEventArgs e)
 {
     Assert.That(File.Exists(e.FullPath), "{0} does exist; path was defined as {1}", e.FullPath, e.Path);
 }
Example #22
0
        public void OnClientNotify(object sender, SvnNotifyEventArgs e)
        {
            //e.Detach();

            string          path   = e.FullPath;
            Uri             uri    = e.Uri;
            SvnNotifyAction action = e.Action;
            long            rev    = e.Revision;

            Enqueue(delegate()
            {
                ListViewItem item = null;
                string text       = GetActionText(action);

                if (string.IsNullOrEmpty(text))
                {
                    return;
                }

                item = new ListViewItem(text);

                switch (action)
                {
                case SvnNotifyAction.BlameRevision:
                    {
                        string file;
                        if (uri != null)
                        {
                            file = SvnTools.GetFileName(uri);
                        }
                        else
                        {
                            file = Path.GetFileName(path);
                        }

                        item.SubItems.Add(string.Format("{0} - r{1}", file, rev));
                        break;
                    }

                default:
                    if (uri != null)
                    {
                        item.SubItems.Add(uri.ToString());
                    }
                    else if (!string.IsNullOrEmpty(path))
                    {
                        string sr = SplitRoot;
                        if (!string.IsNullOrEmpty(sr) && SvnItem.IsBelowRoot(path, sr))
                        {
                            string np = SvnItem.SubPath(path, sr, true);

                            if (np.IndexOf(':') == 1)
                            {
                                path = np;     // Full path
                            }
                            else
                            {
                                path = np.Replace(Path.DirectorySeparatorChar, '/');
                            }
                        }

                        item.SubItems.Add(path);
                    }
                    break;
                }

                if (item != null)
                {
                    _toAdd.Add(item);
                }
            });
        }
Example #23
0
 void OnLockNotify(object sender, SvnNotifyEventArgs e)
 {
     GC.KeepAlive(e);
     //throw new NotImplementedException();
 }
Example #24
0
 private void SvnCheckOutArgsOnNotify(object sender, SvnNotifyEventArgs args)
 {
     Logger.LogInfo(args.Action.ToString(), args.Path);
 }
 private static void SvnUpdateArgsOnNotify(object sender, SvnNotifyEventArgs e)
 {
     Console.WriteLine(Resources.SvnUtils_SvnUpdateArgsOnNotify_Update_to_revision, e.Path,
                       e.Revision.ToString());
 }
Example #26
0
        private void SC_Notify(object sender, SvnNotifyEventArgs e)
        {
            notiny = string.Format("{0}:{1}.", getstringact(e.Action), new FileInfo(e.FullPath).Name);
            ShowInfo();
        }
Example #27
0
 /// <summary>
 /// Callback method to be used as ClientContext.NotifyCallback
 /// </summary>
 /// <param name="notification">An object containing information about the notification</param>
 public virtual void NotifyCallback(object sender, SvnNotifyEventArgs e)
 {
     e.Detach();
     _notifications.Add(e);
 }
		void client_Notify(object sender, SvnNotifyEventArgs e)
		{
			if (Notify != null) {
				Notify(this, new NotificationEventArgs() {
				       	Action = GetActionString(e.Action),
				       	Kind = GetKindString(e.NodeKind),
				       	Path = e.Path
				       });
			}
		}
Example #29
0
		static void Notify (SvnNotifyEventArgs e, NotifData notifData, IProgressMonitor monitor)
		{
			string actiondesc;
			string file = e.Path;
			bool skipEol = false;
			bool notifyChange = false;

			switch (e.Action) {
				case SvnNotifyAction.Skip:
					if (e.ContentState == SvnNotifyState.Missing) {
						actiondesc = string.Format (GettextCatalog.GetString ("Skipped missing target: '{0}'"), file);
					}
					else {
						actiondesc = string.Format (GettextCatalog.GetString ("Skipped '{0}'"), file);
					}
					break;
				case SvnNotifyAction.UpdateDelete:
					actiondesc = string.Format (GettextCatalog.GetString ("Deleted   '{0}'"), file);
					break;

				case SvnNotifyAction.UpdateAdd:
					if (e.ContentState == SvnNotifyState.Conflicted) {
						actiondesc = string.Format (GettextCatalog.GetString ("Conflict {0}"), file);
					}
					else {
						actiondesc = string.Format (GettextCatalog.GetString ("Added   {0}"), file);
					}
					break;
				case SvnNotifyAction.Restore:
					actiondesc = string.Format (GettextCatalog.GetString ("Restored '{0}'"), file);
					break;
				case SvnNotifyAction.Revert:
					actiondesc = string.Format (GettextCatalog.GetString ("Reverted '{0}'"), file);
					break;
				case SvnNotifyAction.RevertFailed:
					actiondesc = string.Format (GettextCatalog.GetString ("Failed to revert '{0}' -- try updating instead."), file);
					break;
				case SvnNotifyAction.Resolved:
					actiondesc = string.Format (GettextCatalog.GetString ("Resolved conflict state of '{0}'"), file);
					break;
				case SvnNotifyAction.Add:
					if (e.MimeTypeIsBinary) {
						actiondesc = string.Format (GettextCatalog.GetString ("Add (bin) '{0}'"), file);
					}
					else {
						actiondesc = string.Format (GettextCatalog.GetString ("Add       '{0}'"), file);
					}
					break;
				case SvnNotifyAction.Delete:
					actiondesc = string.Format (GettextCatalog.GetString ("Delete    '{0}'"), file);
					break;

				case SvnNotifyAction.UpdateUpdate:
					actiondesc = string.Format (GettextCatalog.GetString ("Update '{0}'"), file);
					notifyChange = true;
					break;
				case SvnNotifyAction.UpdateExternal:
					actiondesc = string.Format (GettextCatalog.GetString ("Fetching external item into '{0}'"), file);
					break;
				case SvnNotifyAction.UpdateCompleted:  // TODO
					actiondesc = GettextCatalog.GetString ("Finished");
					break;
				case SvnNotifyAction.StatusExternal:
					actiondesc = string.Format (GettextCatalog.GetString ("Performing status on external item at '{0}'"), file);
					break;
				case SvnNotifyAction.StatusCompleted:
					actiondesc = string.Format (GettextCatalog.GetString ("Status against revision: '{0}'"), e.Revision);
					break;

				case SvnNotifyAction.CommitDeleted:
					actiondesc = string.Format (GettextCatalog.GetString ("Deleting       {0}"), file);
					break;
				case SvnNotifyAction.CommitModified:
					actiondesc = string.Format (GettextCatalog.GetString ("Sending        {0}"), file);
					notifyChange = true;
					break;
				case SvnNotifyAction.CommitAdded:
					if (e.MimeTypeIsBinary) {
						actiondesc = string.Format (GettextCatalog.GetString ("Adding  (bin)  '{0}'"), file);
					}
					else {
						actiondesc = string.Format (GettextCatalog.GetString ("Adding         '{0}'"), file);
					}
					break;
				case SvnNotifyAction.CommitReplaced:
					actiondesc = string.Format (GettextCatalog.GetString ("Replacing      {0}"), file);
					notifyChange = true;
					break;
				case SvnNotifyAction.CommitSendData:
					if (!notifData.SendingData) {
						notifData.SendingData = true;
						actiondesc = GettextCatalog.GetString ("Transmitting file data");
					}
					else {
						actiondesc = ".";
						skipEol = true;
					}
					break;

				case SvnNotifyAction.LockLocked:
					actiondesc = string.Format (GettextCatalog.GetString ("'{0}' locked by user '{1}'."), file, e.Lock.Owner);
					break;
				case SvnNotifyAction.LockUnlocked:
					actiondesc = string.Format (GettextCatalog.GetString ("'{0}' unlocked."), file);
					break;
				default:
					actiondesc = e.Action.ToString () + " " + file;
					break;
			}

			if (monitor != null) {
				if (skipEol)
					monitor.Log.Write (actiondesc);
				else
					monitor.Log.WriteLine (actiondesc);
			}

			if (notifyChange && File.Exists (file))
				FileService.NotifyFileChanged (file, true);
		}
Example #30
0
 /// <summary>
 /// Callback method to be used as ClientContext.NotifyCallback
 /// </summary>
 /// <param name="notification">An object containing information about the notification</param>
 public virtual void NotifyCallback(object sender, SvnNotifyEventArgs e)
 {
     e.Detach();
     _notifications.Add(e);
 }
Example #31
0
        public void OnClientNotify(object sender, SvnNotifyEventArgs e)
        {
            //e.Detach();

            string path = e.FullPath;
            Uri uri = e.Uri;
            SvnNotifyAction action = e.Action;
            long rev = e.Revision;

            Enqueue(delegate()
            {
                ListViewItem item = null;
                item = new ListViewItem(GetActionText(action));

                switch (action)
                {
                    case SvnNotifyAction.BlameRevision:
                        {
                            string file;
                            if (uri != null)
                                file = SvnTools.GetFileName(uri);
                            else
                                file = Path.GetFileName(path);

                            item.SubItems.Add(string.Format("{0} - r{1}", file, rev));
                            break;
                        }
                    default:
                        if (uri != null)
                            item.SubItems.Add(uri.ToString());
                        else if (!string.IsNullOrEmpty(path))
                        {
                            string sr = SplitRoot;
                            if (!string.IsNullOrEmpty(sr))
                            {
                                if (path.StartsWith(sr, StringComparison.OrdinalIgnoreCase))
                                    path = path.Substring(sr.Length).Replace(Path.DirectorySeparatorChar, '/');
                            }

                            item.SubItems.Add(path);
                        }
                        break;
                }

                if (item != null)
                    _toAdd.Add(item);
            });
        }
Example #32
0
 private void SvnCopyArgsOnNotify(object sender, SvnNotifyEventArgs e)
 {
     Logger.LogInfo(e.Uri.ToString());
 }
Example #33
0
        static void Notify(SvnNotifyEventArgs e, NotifData notifData, IProgressMonitor monitor)
        {
            string actiondesc;
            string file         = e.Path;
            bool   skipEol      = false;
            bool   notifyChange = false;

            switch (e.Action)
            {
            case SvnNotifyAction.Skip:
                if (e.ContentState == SvnNotifyState.Missing)
                {
                    actiondesc = string.Format(GettextCatalog.GetString("Skipped missing target: '{0}'"), file);
                }
                else
                {
                    actiondesc = string.Format(GettextCatalog.GetString("Skipped '{0}'"), file);
                }
                break;

            case SvnNotifyAction.UpdateDelete:
                actiondesc = string.Format(GettextCatalog.GetString("Deleted   '{0}'"), file);
                break;

            case SvnNotifyAction.UpdateAdd:
                if (e.ContentState == SvnNotifyState.Conflicted)
                {
                    actiondesc = string.Format(GettextCatalog.GetString("Conflict {0}"), file);
                }
                else
                {
                    actiondesc = string.Format(GettextCatalog.GetString("Added   {0}"), file);
                }
                break;

            case SvnNotifyAction.Restore:
                actiondesc = string.Format(GettextCatalog.GetString("Restored '{0}'"), file);
                break;

            case SvnNotifyAction.Revert:
                actiondesc = string.Format(GettextCatalog.GetString("Reverted '{0}'"), file);
                break;

            case SvnNotifyAction.RevertFailed:
                actiondesc = string.Format(GettextCatalog.GetString("Failed to revert '{0}' -- try updating instead."), file);
                break;

            case SvnNotifyAction.Resolved:
                actiondesc = string.Format(GettextCatalog.GetString("Resolved conflict state of '{0}'"), file);
                break;

            case SvnNotifyAction.Add:
                if (e.MimeTypeIsBinary)
                {
                    actiondesc = string.Format(GettextCatalog.GetString("Add (bin) '{0}'"), file);
                }
                else
                {
                    actiondesc = string.Format(GettextCatalog.GetString("Add       '{0}'"), file);
                }
                break;

            case SvnNotifyAction.Delete:
                actiondesc = string.Format(GettextCatalog.GetString("Delete    '{0}'"), file);
                break;

            case SvnNotifyAction.UpdateUpdate:
                actiondesc   = string.Format(GettextCatalog.GetString("Update '{0}'"), file);
                notifyChange = true;
                break;

            case SvnNotifyAction.UpdateExternal:
                actiondesc = string.Format(GettextCatalog.GetString("Fetching external item into '{0}'"), file);
                break;

            case SvnNotifyAction.UpdateCompleted:              // TODO
                actiondesc = GettextCatalog.GetString("Finished");
                break;

            case SvnNotifyAction.StatusExternal:
                actiondesc = string.Format(GettextCatalog.GetString("Performing status on external item at '{0}'"), file);
                break;

            case SvnNotifyAction.StatusCompleted:
                actiondesc = string.Format(GettextCatalog.GetString("Status against revision: '{0}'"), e.Revision);
                break;

            case SvnNotifyAction.CommitDeleted:
                actiondesc = string.Format(GettextCatalog.GetString("Deleting       {0}"), file);
                break;

            case SvnNotifyAction.CommitModified:
                actiondesc   = string.Format(GettextCatalog.GetString("Sending        {0}"), file);
                notifyChange = true;
                break;

            case SvnNotifyAction.CommitAdded:
                if (e.MimeTypeIsBinary)
                {
                    actiondesc = string.Format(GettextCatalog.GetString("Adding  (bin)  '{0}'"), file);
                }
                else
                {
                    actiondesc = string.Format(GettextCatalog.GetString("Adding         '{0}'"), file);
                }
                break;

            case SvnNotifyAction.CommitReplaced:
                actiondesc   = string.Format(GettextCatalog.GetString("Replacing      {0}"), file);
                notifyChange = true;
                break;

            case SvnNotifyAction.CommitSendData:
                if (!notifData.SendingData)
                {
                    notifData.SendingData = true;
                    actiondesc            = GettextCatalog.GetString("Transmitting file data");
                }
                else
                {
                    actiondesc = ".";
                    skipEol    = true;
                }
                break;

            case SvnNotifyAction.LockLocked:
                actiondesc = string.Format(GettextCatalog.GetString("'{0}' locked by user '{1}'."), file, e.Lock.Owner);
                break;

            case SvnNotifyAction.LockUnlocked:
                actiondesc = string.Format(GettextCatalog.GetString("'{0}' unlocked."), file);
                break;

            default:
                actiondesc = e.Action + " " + file;
                break;
            }

            if (monitor != null)
            {
                if (skipEol)
                {
                    monitor.Log.Write(actiondesc);
                }
                else
                {
                    monitor.Log.WriteLine(actiondesc);
                }
            }

            if (notifyChange && File.Exists(file))
            {
                FileService.NotifyFileChanged(file, true);
            }
        }
Example #34
0
 private void SvnUpdateArgsOnNotify(object sender, SvnNotifyEventArgs e)
 {
     Logger.LogInfo(string.Format(Resources.SvnUtils_SvnUpdateArgsOnNotify_Update_to_revision, e.Path,
                                  e.Revision.ToString()));
 }
Example #35
0
        void OnNotify(object sender, SvnNotifyEventArgs e)
        {
            // Do not catalog MergeBegin
            if (e.Action == SvnNotifyAction.MergeBegin)
                return;

            e.Detach();

            _mergeActions.Add(e);
        }
Example #36
0
 private void SvnLogArgsOnNotify(object sender, SvnNotifyEventArgs e)
 {
     Logger.LogInfo(e.Path);
 }
 void OnLockNotify(object sender, SvnNotifyEventArgs e)
 {
     GC.KeepAlive(e);
     //throw new NotImplementedException();
 }
Example #38
0
            protected override void OnNotify(SvnNotifyEventArgs e)
            {
                base.OnNotify(e);

                string path = e.FullPath;

                if (string.IsNullOrEmpty(path))
                    return;

                SvnClientAction action;
                if (!_changes.TryGetValue(path, out action))
                    _changes.Add(path, action = new SvnClientAction(path));

                switch (e.Action)
                {
                    case SvnNotifyAction.CommitDeleted:
                    case SvnNotifyAction.Revert:
                    case SvnNotifyAction.TreeConflict:
                        action.Recursive = true;
                        break;
                    case SvnNotifyAction.UpdateDelete:
                        action.Recursive = true;
                        action.AddOrRemove = true;
                        break;
                    case SvnNotifyAction.UpdateReplace:
                    case SvnNotifyAction.UpdateAdd:
                        action.AddOrRemove = true;
                        break;
                    case SvnNotifyAction.UpdateUpdate:
                        action.OldRevision = e.OldRevision;
                        break;
                }
            }
 private void client_Notify(object sender, SvnNotifyEventArgs e)
 {
     Notify?.Invoke(
         this,
         new NotificationEventArgs
         {
             Action = GetActionString(e.Action),
             Kind = GetKindString(e.NodeKind),
             Path = e.Path
         });
 }
 private static void OnSvnMergeArgsOnNotify(object sender, SvnNotifyEventArgs args)
 {
     Logger.LogInfo(args.Action.ToString(), args.Path);
 }