From b78bb6653476fca518200383a3fae9a27b6c9db9 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Tue, 14 Jan 2020 16:45:11 -0500 Subject: [PATCH] scripts: rfr: update gerrit URL format Update rfr script to handle new gerrit URL format. Change-Id: Ic08feaaff7e9ab756425652ffdd1e79862856f0e Signed-off-by: Thomas Fleury Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2279114 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman Reviewed-by: Seshendra Gadagottu Tested-by: Seshendra Gadagottu GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup Reviewed-by: mobile promotions Tested-by: mobile promotions --- scripts/rfr | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/rfr b/scripts/rfr index 57ad96342..690250deb 100755 --- a/scripts/rfr +++ b/scripts/rfr @@ -1,6 +1,6 @@ #!/usr/bin/python # -# Copyright (c) 2018, NVIDIA CORPORATION. All Rights Reserved. +# Copyright (c) 2018-2020, NVIDIA CORPORATION. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), @@ -52,7 +52,8 @@ gr_fmts = [ r'http://git-master/r/(\d+)', r'https://git-master/r/#/c/(\d+)/', r'https://git-master.nvidia.com/r/(\d+)', r'https://git-master.nvidia.com/r/#/c/(\d+)', - r'https://git-master.nvidia.com/r/#/c/(\d+)/' ] + r'https://git-master.nvidia.com/r/#/c/(\d+)/', + r'https://git-master.nvidia.com/r/c/(?:[\w\-_\/]+?)\+/(\d+)' ] # The user to use. May be overridden but the default comes from the environment. user = os.environ['USER']