Three more test cases for the mtn interface added

- add tests for getTree(), getChanges() and isCommitLarge()
- anonymize the test data somewhat
- return false instead of null for unknown revisions given to getChanges()
This commit is contained in:
Thomas Keller
2011-04-15 00:54:11 +02:00
parent b3368071ac
commit df6ffdf420
2 changed files with 249 additions and 23 deletions

View File

@@ -599,7 +599,7 @@ class IDF_Scm_Monotone extends IDF_Scm
{
$revs = $this->_resolveSelector($commit);
if (count($revs) == 0)
return null;
return false;
$revision = $revs[0];
$out = $this->stdio->exec(array('get_revision', $revision));