WIP
Make the Arcanist arc patch command to follow the "zero one infinity" rule.
Before this change, you cannot run the same command more than 4 times.
Closes T15173
Differential D25027
Allow an infinite number of arcpatch_DXXXX_X branches to be created • ncollins on Nov 12 2021, 20:23. Authored by
Details
WIP Make the Arcanist arc patch command to follow the "zero one infinity" rule. Before this change, you cannot run the same command more than 4 times. Closes T15173 WIP
Diff Detail
Event TimelineComment Actions Although there's merit to the "zero, one, infinity" rule, it might not be the best option here. If something goes wrong and $err happens to always be falsy, this will end up in an infinite loop instead of giving a clear error message. There is probably a reasonable finite value (that's greater than 4) which can be chosen as the limit to the number of attempts.
Comment Actions I also think that having the first branch called as arcpatch-D123_ (with trailing underscore) as default could be considered a breaking change by some users. I think this can and it should be avoided. Comment Actions I see that you marked this as "Work in progress." I don't know how to highlight this fact, so I'm marking this as "Request Changes" (also because some changes were requested). Sorry if this puts a red mark, but I like this proposal of infinite executions of arc patch. |