Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2019-03-02 17:27:14 +0000
committerMichael Keppler2019-05-01 05:22:52 +0000
commitb703ea7740bc91619f4b9fb00940ba83272df951 (patch)
tree97ad2ec3dd5a4227cc80b0dd0680a4852efafdc5 /org.eclipse.egit.ui.test/src/org/eclipse/egit
parentb83ddfeb998a88539f870cfb4785ff1d672b9ac5 (diff)
downloadegit-b703ea7740bc91619f4b9fb00940ba83272df951.tar.gz
egit-b703ea7740bc91619f4b9fb00940ba83272df951.tar.xz
egit-b703ea7740bc91619f4b9fb00940ba83272df951.zip
Shorten SHA1 in editor title
When opening a commit from history, it used the full SHA1 in the editor title, leading to very wide tabs. Use a short version instead. The shortening of the SHA1 was done in the editor input calculation instead of the getContentIdentifier() method to avoid side effects at other callers of getContentIdentifier(), which use that for equals() comparisons of revisions. Bug:544983 Change-Id: Ic15c12d0cd4827090d124de10765b76c62e1096e Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
index 5a4c294cc4..f2a0d12ffa 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
@@ -406,7 +406,8 @@ public class HistoryViewTest extends LocalRepositoryTestCase {
.click();
// Editor for old file version should be opened
- bot.editorByTitle(FILE1 + " " + commit.getParent(0).getName());
+ bot.editorByTitle(
+ FILE1 + " " + commit.getParent(0).getName().substring(0, 7));
}
@Test

Back to the top