Mercurial > hg4j
diff test/org/tmatesoft/hg/test/TestPhases.java @ 623:fedc54356091
Update tests for Windows; TestCommit: use copy of a repo (not clone) to preserve old timestamps
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 20 May 2013 18:35:13 +0200 |
parents | ba36f66c32b4 |
children | 6526d8adbc0f |
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestPhases.java Mon May 20 16:56:40 2013 +0200 +++ b/test/org/tmatesoft/hg/test/TestPhases.java Mon May 20 18:35:13 2013 +0200 @@ -85,6 +85,7 @@ OutputParser.Stub output = new OutputParser.Stub(); ExecHelper eh = new ExecHelper(output, repo.getWorkingDir()); eh.run("hg", "phase", "-r", "0:-1"); + assertEquals("Perhaps, older Mercurial version, with no hg phase command support?", 0, eh.getExitValue()); Matcher m = Pattern.compile("(\\d+): (\\w+)$", Pattern.MULTILINE).matcher(output.result()); int i = 0; while (m.find()) {