Preserve picked patch name when possiblemaster
commit8254ffb2eee53f97e9c6210078db55c15340ead3
authorPeter Grayson <pete@jpgrayson.net>
Fri, 7 Jan 2022 19:29:14 +0000 (7 14:29 -0500)
committerPeter Grayson <pete@jpgrayson.net>
Fri, 7 Jan 2022 22:47:10 +0000 (7 17:47 -0500)
tree21eb2c542723c3b51493be0448dd38c6b3e4a895
parent35feff7c737d885467fef4edc6d627e1e81a61b0
Preserve picked patch name when possible

When `stg pick` picks a patch, it now preserves the patch name as long
as it is unique to the stack it is being brought into. Previously, patch
names with certain valid, but non-word, non-digit characters (e.g. '@')
would be morphed such that the original patch name was not preserved.

Repairs #175

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
stgit/commands/pick.py
t/t3400-pick.sh