diff options
author | Eike Stepper | 2021-11-03 16:33:46 +0000 |
---|---|---|
committer | Eike Stepper | 2021-11-03 16:33:46 +0000 |
commit | 42acbbe5ac2d0d33b3ef202832c23344d8c2852e (patch) | |
tree | 4198e80d69dd3687b10f66549c8a7f8c7d4fd0ea /plugins/org.eclipse.emf.cdo | |
parent | cce7362734d1d11626db4c1d17f9d291bd468888 (diff) | |
download | cdo-42acbbe5ac2d0d33b3ef202832c23344d8c2852e.tar.gz cdo-42acbbe5ac2d0d33b3ef202832c23344d8c2852e.tar.xz cdo-42acbbe5ac2d0d33b3ef202832c23344d8c2852e.zip |
[260036] Provide "revert to the history revision" operation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=260036
Diffstat (limited to 'plugins/org.eclipse.emf.cdo')
-rw-r--r-- | plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/transaction/CDOTransactionCommentator.java | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/transaction/CDOTransactionCommentator.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/transaction/CDOTransactionCommentator.java index 1607ae895a..3a845d5169 100644 --- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/transaction/CDOTransactionCommentator.java +++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/transaction/CDOTransactionCommentator.java @@ -54,7 +54,7 @@ public class CDOTransactionCommentator implements Closeable String commitComment = transaction.getCommitComment(); if (commitComment != null) { - transaction.setCommitComment(commitComment + " " + lastComment); + transaction.setCommitComment(commitComment + " (" + lastComment + ")"); } else { @@ -186,10 +186,22 @@ public class CDOTransactionCommentator implements Closeable { if (mergeSource != null) { - builder.append(MERGE_PREFIX); - builder.append(mergeSource.getBranch().getPathName()); + return appendBranchPoint(builder, mergeSource); + } + + return false; + } + + /** + * @since 4.15 + */ + public static boolean appendBranchPoint(StringBuilder builder, CDOBranchPoint branchPoint) + { + if (branchPoint != null) + { + builder.append(branchPoint.getBranch().getPathName()); builder.append(", "); - builder.append(CDOCommonUtil.formatTimeStamp(mergeSource.getTimeStamp())); + builder.append(CDOCommonUtil.formatTimeStamp(branchPoint.getTimeStamp())); return true; } |