changeset 224560b5f56c in trypod:default
details: https://hg.tryton.org/trypod?cmd=changeset&node=224560b5f56c
description:
        Use phasestr instead of phase

        phase return an integer instead of the name of the phase.
diffstat:

 hook.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 52029073a5d3 -r 224560b5f56c hook.py
--- a/hook.py   Fri May 07 17:54:34 2021 +0200
+++ b/hook.py   Thu Jul 29 12:02:34 2021 +0200
@@ -28,8 +28,8 @@
         repourl += root
 
     phases = ui.config(b'trypod', b'phases', None)
-    if phases and ctx.phase() not in phases:
-        ui.debug(b'trypod: %s phase ignored\n' % ctx.phase())
+    if phases and ctx.phasestr() not in phases:
+        ui.debug(b'trypod: %s phase ignored\n' % ctx.phasestr())
         return
 
     branch = ctx.branch()

Reply via email to