Commits

"Sta...@redhat.com>"  committed 24c3f0b

Revert test changes

  • Participants
  • Parent commits 88cff4c

Comments (0)

Files changed (2)

File test/org/opensolaris/opengrok/history/BazaarHistoryParserTest.java

         String date1 = "Wed 2008-10-01 10:01:34 +0200";
 
         String revId2 = "1234";
-        String tags2 = "file_tag";
         String author2 = "First2 Last2 <username2@example.com>";
         String date2 = "Wed 2008-10-15 09:21:31 +0100";
 
                 "  Some message.\n" +
                 "------------------------------------------------------------\n" +
                 "revno: " + revId2 + "\n" +
-                "tags: " + tags2 + "\n" +
                 "committer: " + author2 + "\n" +
                 "branch nick: branch-name\n" +
                 "timestamp: " + date2 + "\n" +
 
         HistoryEntry e2 = result.getHistoryEntries().get(1);
         assertEquals(revId2, e2.getRevision());
-        assertEquals(tags2, e2.getTags());
         assertEquals(author2, e2.getAuthor());
         assertEquals(0, e2.getFiles().size());
 

File test/org/opensolaris/opengrok/history/GitHistoryParserTest.java

         String commitId1 = "1a23456789abcdef123456789abcderf123456789";
         String commitId2 = "2a2323487092314kjsdafsad7829342kjhsdf3289";
         String commitId3 = "3asdfq234242871934g2sadfsa327894234sa2389";
-        String tags2 = "refs/tags/test_tag";
         String author1 = "username <username@asfdsaf-23412-sadf-cxvdsfg3123-sfasdf>";
         String author2 = "username2 <username2@as345af-23412-sadf-cxvdsfg3123-sfasdf>";
         String date1 = "Sat Apr 1 15:12:51 2008 +0000";
                 "    \n" +
                 "    git-svn-id: http://host.example.com/svn/product/trunk/server@324-fdws-2342-fsdaf-gds-234\n" +
                 "\n" +
-                "commit " + commitId2 + " (" + tags2 + ")\n" +
+                "commit " + commitId2 + "\n" +
                 "Author:     " + author2 + "\n" +
                 "AuthorDate: " + date2 + "\n" +
                 "Commit:     " + author2 + "\n" +
         assertEquals(0, e0.getFiles().size());
         HistoryEntry e1 = result.getHistoryEntries().get(1);
         assertEquals(commitId2, e1.getRevision());
-        assertEquals(tags2, e1.getTags());
         assertEquals(author2, e1.getAuthor());
         assertEquals(0, e1.getFiles().size());
         HistoryEntry e2 = result.getHistoryEntries().get(2);
     public void parseALaGit() throws Exception {
         String commitId1 = "1a23456789abcdef123456789abcderf123456789";
         String commitId2 = "2a2323487092314kjsdafsad7829342kjhsdf3289";
-        String tags2 = "refs/tags/test_tag";
         String author1 = "username <username@example.com>";
         String author2 = "username2 <username2@example.com>";
         String date1 = "Sun Jan 13 01:12:05 2008 -0700";
                 "\n" +
                 filename + "\n" +
                 "\n" +
-                "commit " + commitId2 + " (" + tags2 + ")\n" +
+                "commit " + commitId2 + "\n" +
                 "Author:     " + author2 + "\n" +
                 "AuthorDate: " + date1 + "\n" +
                 "Commit:     " + author2 + "\n" +
         assertTrue(e0.getMessage().contains("Signed-off-by"));
         HistoryEntry e1 = result.getHistoryEntries().get(1);
         assertEquals(commitId2, e1.getRevision());
-        assertEquals(tags2, e1.getTags());
         assertEquals(author2, e1.getAuthor());
         assertEquals(1, e1.getFiles().size());
         assertEquals("/" + filename, e1.getFiles().first());