Affected Version: 2.2.1-3-ge771d97
When you using the patchset-created cmd arguments the username will parsed differently (patchste-created and comment-added) when using the same script for parsing.
What steps will reproduce the problem?
1. Active patchset-created Hook
2. Parse arguments in python
3. Get the arguments with $@
What is the expected output?
print sys.argv[1:]
### PRINT OF sys.argv[1:] ###
['--action', 'new',
'--change','I87f7802d438d5640779daa9ac8196aeb3eec8c2a',
'--change-url',
'http://<hostname>:8080/308'
'--project', 'private/bar',
'--branch', 'master',
'--uploader', 'xxxxxxx-xxxxx xxxxxxx (xxxxxxxxxxxxx.xxxxxxx@xxx-xxxx.xx)',
'--commit', '49aae9befaf27a5fede51b498f0660199f47b899',
'--patchset', '1']
### PRINT OF sys.argv[1:] ###
What do you see instead?
print sys.argv[1:]
### PRINT OF sys.argv[1:] ###
['--action', 'new',
'--change','I87f7802d438d5640779daa9ac8196aeb3eec8c2a',
'--change-url',
'http://<hostname>:8080/308'
'--project', 'private/bar',
'--branch', 'master',
'--uploader', 'xxxxxxx-xxxxx', 'xxxxxxx', '(xxxxxxxxxxxxx.xxxxxxx@xxx-xxxx.xx)', <<<< Here is the problem >>>>
'--commit', '49aae9befaf27a5fede51b498f0660199f47b899',
'--patchset', '1']
### PRINT OF sys.argv[1:] ###
Please provide any additional information below.
See in the attachment for the parsing script.