From 3b965f2353d164ad4be7b2274ae0487da72297a4 Mon Sep 17 00:00:00 2001 From: Lin Yang Date: Mon, 14 Oct 2013 15:34:29 +0800 Subject: [PATCH] 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 --- job_submitobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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': -- 2.7.4