changeset 46016:372409eb5cd1

phab-refresh: do not error out when the stack is empty Actually, empty stack is easier to get than I expected (and harmless). When a stack is publish, heptapod will detect the even, empty the stack (triggering CI) and "forgetting" the branch afterward. So we stop returning as error in this case. Differential Revision: https://phab.mercurial-scm.org/D9513
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 03 Dec 2020 08:09:56 +0100
parents f44b9c72f061
children 068307b638f4
files contrib/phab-refresh-stack.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/phab-refresh-stack.sh	Wed Dec 02 20:10:27 2020 +0100
+++ b/contrib/phab-refresh-stack.sh	Thu Dec 03 08:09:56 2020 +0100
@@ -6,7 +6,7 @@
 
 if [[ $revision_in_stack -eq 0 ]]; then
     echo "stack is empty" >&2
-    exit 1
+    exit 0
 fi
 
 if [[ $revision_on_phab -eq 0 ]]; then