File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/history Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 47
47
import java .util .ArrayList ;
48
48
import java .util .Arrays ;
49
49
import java .util .Collections ;
50
- import java .util .Date ;
51
50
import java .util .List ;
52
51
import java .util .Objects ;
53
52
import java .util .Set ;
@@ -476,4 +475,18 @@ void testBuildTagListInitial() throws Exception {
476
475
expectedTags .add (tagEntry );
477
476
assertEquals (expectedTags , tags );
478
477
}
478
+
479
+ @ Test
480
+ void testBuildTagListOneMore () throws Exception {
481
+ MercurialRepository hgRepo = (MercurialRepository ) RepositoryFactory .getRepository (repositoryRoot );
482
+ assertNotNull (hgRepo );
483
+ runHgCommand (repositoryRoot , "tag" , "foo" );
484
+ hgRepo .buildTagList (new File (hgRepo .getDirectoryName ()), CommandTimeoutType .INDEXER );
485
+ var tags = hgRepo .getTagList ();
486
+ assertNotNull (tags );
487
+ assertEquals (2 , tags .size ());
488
+ Set <TagEntry > expectedTags = Set .of (new MercurialTagEntry (7 , "start_of_novel" ),
489
+ new MercurialTagEntry (9 , "foo" ));
490
+ assertEquals (expectedTags , tags );
491
+ }
479
492
}
You can’t perform that action at this time.
0 commit comments