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 <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2283726
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Thomas Fleury
2020-01-22 13:11:10 -05:00
committed by Alex Waterman
parent 719186cca0
commit 198b7638ec

View File

@@ -44,7 +44,8 @@ to_addr = 'sw-mobile-nvgpu-core <sw-mobile-nvgpu-core@exchange.nvidia.com>'
# 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+)/',