changeset 93a228fc7e69 in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset&node=93a228fc7e69
description:
        Prevent release with uncommitted changes
diffstat:

 do_major_release |  5 +++++
 do_minor_release |  5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diffs (30 lines):

diff -r fd502b1ea80e -r 93a228fc7e69 do_major_release
--- a/do_major_release  Sun May 02 20:03:28 2021 +0200
+++ b/do_major_release  Wed May 05 23:08:26 2021 +0200
@@ -12,6 +12,11 @@
     exit 1
 fi
 
+if [[ $(hg status 2>/dev/null) ]]; then
+    echo "Uncommitted changes" >&2
+    exit 1
+fi
+
 if [ -f setup.py ]; then
     chmod +x setup.py
     echo "increase version number"
diff -r fd502b1ea80e -r 93a228fc7e69 do_minor_release
--- a/do_minor_release  Sun May 02 20:03:28 2021 +0200
+++ b/do_minor_release  Wed May 05 23:08:26 2021 +0200
@@ -12,6 +12,11 @@
     exit 1
 fi
 
+if [[ $(hg status 2>/dev/null) ]]; then
+    echo "Uncommitted changes" >&2
+    exit 1
+fi
+
 echo "check to release"
 if to_release; then
     echo "Nothing to release" >&2

Reply via email to