@@ -25,10 +25,10 @@ public static function cleanTags($tags)
2525 public function testInitialVersion ()
2626 {
2727 $ this ->initHg ();
28- $ this ->createConfig ('simple ' , ' vcs-tag ' , array ('vcs ' => 'hg ' ));
28+ $ this ->createConfig ('simple ' , array ( ' name ' => ' vcs-tag ', ' tag-prefix ' => ' v ' ) , array ('vcs ' => 'hg ' ));
2929 exec ('./RMT release -n --confirm-first ' );
3030 exec ('hg tags ' , $ tags );
31- $ this ->assertEquals (array ('tip ' , '1 ' ), static ::cleanTags ($ tags ));
31+ $ this ->assertEquals (array ('tip ' , 'v1 ' ), static ::cleanTags ($ tags ));
3232 }
3333
3434 public function testInitialVersionSemantic ()
@@ -43,13 +43,13 @@ public function testInitialVersionSemantic()
4343 public function testSimple ()
4444 {
4545 $ this ->initHg ();
46- exec ('hg tag 1 ' );
47- exec ('hg tag 3 ' );
46+ exec ('hg tag v1 ' );
47+ exec ('hg tag v3 ' );
4848 exec ('hg tag toto ' );
49- $ this ->createConfig ('simple ' , ' vcs-tag ' , array ('vcs ' => 'hg ' ));
49+ $ this ->createConfig ('simple ' , array ( ' name ' => ' vcs-tag ', ' tag-prefix ' => ' v ' ) , array ('vcs ' => 'hg ' ));
5050 exec ('./RMT release -n ' );
5151 exec ('hg tags ' , $ tags );
52- $ this ->assertEquals (array ('tip ' , '4 ' , 'toto ' , '3 ' , '1 ' ), static ::cleanTags ($ tags ));
52+ $ this ->assertEquals (array ('tip ' , 'v4 ' , 'toto ' , 'v3 ' , 'v1 ' ), static ::cleanTags ($ tags ));
5353 }
5454
5555 public function testSemantic ()
@@ -65,12 +65,12 @@ public function testSemantic()
6565 public function testTagPrefix ()
6666 {
6767 $ this ->initHg ();
68- exec ('hg tag 2 ' );
68+ exec ('hg tag v2 ' );
6969 exec ('hg tag v_1 ' );
7070 $ this ->createConfig ('simple ' , array ('name ' => 'vcs-tag ' , 'tag-prefix ' => 'v_ ' ), array ('vcs ' => 'hg ' ));
7171 exec ('./RMT release -n ' );
7272 exec ('hg tags ' , $ tags );
73- $ this ->assertEquals (array ('tip ' , 'v_2 ' , 'v_1 ' , '2 ' ), static ::cleanTags ($ tags ));
73+ $ this ->assertEquals (array ('tip ' , 'v_2 ' , 'v_1 ' , 'v2 ' ), static ::cleanTags ($ tags ));
7474 }
7575
7676 public function testTagPrefixWithBranchNamePlaceHolder ()
0 commit comments