From ac4357ef5b8e97cd49bc33a70b88855a4cb3b803 Mon Sep 17 00:00:00 2001
From: Mathieu Courtois <mathieu.courtois@edf.fr>
Date: Tue, 8 Jan 2019 13:13:57 +0100
Subject: [PATCH] [#28360] Add missing 'check_branch' function for Integration.

--HG--
branch : edf/mc
---
 lib/hgaster/ascommands.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/hgaster/ascommands.py b/lib/hgaster/ascommands.py
index 3c1628c9..355ea103 100644
--- a/lib/hgaster/ascommands.py
+++ b/lib/hgaster/ascommands.py
@@ -1225,6 +1225,10 @@ class Integration(CandidateRevisionCheckAster):
             user = ui.username()
             self._details = ui.edit("", user)
 
+    def check_branch(self, repo, branch):
+        """Check branch validity."""
+        return valid_branch(repo, branch)
+
     def _call_queue_func(self, func):
         """call ``func()`` on the revision passed in arguments"""
         rev = self.args[0]
-- 
GitLab