From 194dcad0e3e76372b3d42348d8aed58f6b09c1cd Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Sun, 29 Aug 2010 22:59:12 +0000 Subject: [PATCH] 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). --- src/IDF/Scm/Monotone.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/IDF/Scm/Monotone.php b/src/IDF/Scm/Monotone.php index d414730..f8c898f 100644 --- a/src/IDF/Scm/Monotone.php +++ b/src/IDF/Scm/Monotone.php @@ -122,12 +122,6 @@ class IDF_Scm_Monotone extends IDF_Scm $branch = "*"; } - if (count($this->_resolveSelector("h:$branch")) == 0) { - throw new IDF_Scm_Exception( - "Branch $branch is empty" - ); - } - return $branch; }