scripts: rfr: update gerrit URL format

Update rfr script to handle new gerrit URL format.

Change-Id: Ic08feaaff7e9ab756425652ffdd1e79862856f0e
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2279114
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2020-01-14 16:45:11 -05:00
committed by Alex Waterman
parent 858905aeae
commit b78bb66534

View File

@@ -1,6 +1,6 @@
#!/usr/bin/python #!/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 # Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"), # 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/r/#/c/(\d+)/',
r'https://git-master.nvidia.com/r/(\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/(\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. # The user to use. May be overridden but the default comes from the environment.
user = os.environ['USER'] user = os.environ['USER']