mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-48340 - assert: HgVersion.parseVersion fixed for hg version 2.7-rc+5...
This commit is contained in:
@@ -39,8 +39,8 @@ public final class HgVersion implements Comparable<HgVersion> {
|
||||
|
||||
private static final Logger LOGGER = Logger.getInstance(HgVersion.class);
|
||||
private static final Pattern HG_VERSION_PATTERN =
|
||||
Pattern.compile(".+\\(\\s*version\\s+(\\d+)\\.(\\d+)[\\+\\.]?(\\d*)[\\d\\.]*\\s*\\)\\s*", Pattern.CASE_INSENSITIVE);
|
||||
//f.e. Mercurial Distributed SCM (version 2.6+20130507) or Mercurial Distributed SCM (version 2.6.2)
|
||||
Pattern.compile(".+\\(\\s*version\\s+(\\d+)\\.(\\d+)[\\+\\.-]?(\\d*)?.*\\s*\\)\\s*", Pattern.CASE_INSENSITIVE);
|
||||
//f.e. Mercurial Distributed SCM (version 2.6+20130507) or Mercurial Distributed SCM (version 2.6.2), 2.7-rc+5-ca2dfc2f63eb
|
||||
|
||||
/**
|
||||
* The minimal supported version
|
||||
|
||||
@@ -29,7 +29,8 @@ public class HgVersionTest extends HgPlatformTest {
|
||||
new TestHgVersion("Mercurial Distributed SCM (version 2.6.2)", 2, 6, 2),
|
||||
new TestHgVersion("Mercurial Distributed SCM (version 2.6+20130507)", 2, 6, 20130507),
|
||||
new TestHgVersion("Mercurial Distributed SCM (version 1.9.5)", 1, 9, 5),
|
||||
new TestHgVersion("Mercurial Distributed SCM (version 2.6)", 2, 6, 0)
|
||||
new TestHgVersion("Mercurial Distributed SCM (version 2.6)", 2, 6, 0),
|
||||
new TestHgVersion("Mercurial Distributed SCM (version 2.7-rc+5-ca2dfc2f63eb)", 2, 7, 0)
|
||||
};
|
||||
|
||||
public void testParseSupported() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user