Don't check if the main branch is empty, but let the view code later
handle the case where a selector doesn't resolve to at least one revision gracefully (see also issue 525).
This commit is contained in:
parent
af3df142d4
commit
194dcad0e3
@ -122,12 +122,6 @@ class IDF_Scm_Monotone extends IDF_Scm
|
|||||||
$branch = "*";
|
$branch = "*";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($this->_resolveSelector("h:$branch")) == 0) {
|
|
||||||
throw new IDF_Scm_Exception(
|
|
||||||
"Branch $branch is empty"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $branch;
|
return $branch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user