From 198b7638ec230e3ea8fb2f00b7391189b2cb8924 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Wed, 22 Jan 2020 13:11:10 -0500 Subject: [PATCH] scripts: rfr: add regex to match patch number Add regex rule to match patch number, e.g ./rfr 2279114 ./rfr https://git-master.nvidia.com/r/c/linux-nvgpu/+/2279114 Would be equivalent. Change-Id: I3ffa5f233951d5e4d404517362e984c7a04b9849 Signed-off-by: Thomas Fleury Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2283726 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman Reviewed-by: Vinod Gopalakrishnakurup Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- scripts/rfr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/rfr b/scripts/rfr index 690250deb..3bfd0499d 100755 --- a/scripts/rfr +++ b/scripts/rfr @@ -44,7 +44,8 @@ to_addr = 'sw-mobile-nvgpu-core ' # Gerrit commit URL formats. These are regular expressions to match the # incoming URLs against. -gr_fmts = [ r'http://git-master/r/(\d+)', +gr_fmts = [ r'(\d+)', + r'http://git-master/r/(\d+)', r'http://git-master/r/#/c/(\d+)/', r'http://git-master.nvidia.com/r/(\d+)', r'http://git-master.nvidia.com/r/#/c/(\d+)/',