SetCommitComment() статический приватный Метод

static private SetCommitComment ( string file, string comment, bool save ) : void
file string
comment string
save bool
Результат void
Пример #1
0
		public static bool Revert (VersionControlItemList items, bool test)
		{
			if (RevertInternal (items, test)) {
				foreach (var itemPath in items.Paths)
					VersionControlService.SetCommitComment (itemPath, string.Empty, true);
				return true;
			}
			return false;
		}
Пример #2
0
 public static async Task <bool> RevertAsync(VersionControlItemList items, bool test, CancellationToken cancellationToken)
 {
     if (await RevertInternalAsync(items, test, cancellationToken))
     {
         foreach (var itemPath in items.Paths)
         {
             VersionControlService.SetCommitComment(itemPath, string.Empty, true);
         }
         return(true);
     }
     return(false);
 }
Пример #3
0
            protected override void Run()
            {
                success = true;
                try {
                    // store global comment before commit.
                    VersionControlService.SetCommitComment(changeSet.BaseLocalPath, changeSet.GlobalComment, true);

                    vc.Commit(changeSet, Monitor);
                    Monitor.ReportSuccess(GettextCatalog.GetString("Commit operation completed."));

                    // Reset the global comment on successful commit.
                    VersionControlService.SetCommitComment(changeSet.BaseLocalPath, "", true);
                } catch {
                    success = false;
                    throw;
                }
            }
Пример #4
0
            protected override async Task RunAsync()
            {
                success = true;
                try {
                    // store global comment before commit.
                    VersionControlService.SetCommitComment(changeSet.BaseLocalPath, changeSet.GlobalComment, true);

                    await vc.CommitAsync(changeSet, Monitor);

                    Monitor.ReportSuccess(GettextCatalog.GetString("Commit operation completed."));

                    // Reset the global comment on successful commit.
                    VersionControlService.SetCommitComment(changeSet.BaseLocalPath, "", true);
                } catch (Exception ex) {
                    LoggingService.LogError("Commit operation failed", ex);
                    Monitor.ReportError(ex.Message, null);
                    success = false;
                    throw;
                }
            }