From: Lin Yang Date: Mon, 14 Oct 2013 07:34:29 +0000 (+0800) Subject: Support multiply levels branch name in submit tag X-Git-Tag: 0.15~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b965f2353d164ad4be7b2274ae0487da72297a4;p=services%2Fjenkins-scripts.git Support multiply levels branch name in submit tag Branch name maybe contain '/', like devel/efl. Originly, submission with tag submit/devel/efl/20131009.205635 is treated as submit branch: devel date: efl/20131009.205635 instead of submit branch: devel/efl date:20131009.205635. Fixes: #1378 Change-Id: I57abe3cf1022535ff7e77bf7cefd88a198ce262f Signed-off-by: Lin Yang --- diff --git a/job_submitobs.py b/job_submitobs.py index 7731ae9..a07533c 100755 --- a/job_submitobs.py +++ b/job_submitobs.py @@ -74,7 +74,7 @@ def parse_submit_tag(tag): date = None if tag.startswith('submit/'): - pos = tag.find('/', len('submit/')) + pos = tag.rfind('/', len('submit/')) if pos != -1: branch = tag[len('submit/'):pos] if branch == 'trunk':