Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

have hg tests work correctly with new versions of mercurial #130

Merged
merged 1 commit into from
Nov 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions test/Liip/RMT/Tests/Functional/HgTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public static function cleanTags($tags)
public function testInitialVersion()
{
$this->initHg();
$this->createConfig('simple', 'vcs-tag', array('vcs' => 'hg'));
$this->createConfig('simple', array('name' => 'vcs-tag', 'tag-prefix' => 'v'), array('vcs' => 'hg'));
exec('./RMT release -n --confirm-first');
exec('hg tags', $tags);
$this->assertEquals(array('tip', '1'), static::cleanTags($tags));
$this->assertEquals(array('tip', 'v1'), static::cleanTags($tags));
}

public function testInitialVersionSemantic()
Expand All @@ -43,13 +43,13 @@ public function testInitialVersionSemantic()
public function testSimple()
{
$this->initHg();
exec('hg tag 1');
exec('hg tag 3');
exec('hg tag v1');
exec('hg tag v3');
exec('hg tag toto');
$this->createConfig('simple', 'vcs-tag', array('vcs' => 'hg'));
$this->createConfig('simple', array('name' => 'vcs-tag', 'tag-prefix' => 'v'), array('vcs' => 'hg'));
exec('./RMT release -n');
exec('hg tags', $tags);
$this->assertEquals(array('tip', '4', 'toto', '3', '1'), static::cleanTags($tags));
$this->assertEquals(array('tip', 'v4', 'toto', 'v3', 'v1'), static::cleanTags($tags));
}

public function testSemantic()
Expand All @@ -65,12 +65,12 @@ public function testSemantic()
public function testTagPrefix()
{
$this->initHg();
exec('hg tag 2');
exec('hg tag v2');
exec('hg tag v_1');
$this->createConfig('simple', array('name' => 'vcs-tag', 'tag-prefix' => 'v_'), array('vcs' => 'hg'));
exec('./RMT release -n');
exec('hg tags', $tags);
$this->assertEquals(array('tip', 'v_2', 'v_1', '2'), static::cleanTags($tags));
$this->assertEquals(array('tip', 'v_2', 'v_1', 'v2'), static::cleanTags($tags));
}

public function testTagPrefixWithBranchNamePlaceHolder()
Expand Down