Slackbot
09/20/2023, 3:57 PMLuke Storry
09/20/2023, 4:00 PMGustavo Nunes Goretkin
09/20/2023, 4:00 PMGustavo Nunes Goretkin
09/20/2023, 4:02 PMmain <- PR123), the author would just do a find-and-replace and be good to go. Because of the stacking, this operation is now more burdensome. I am hoping there is a way to reduce the burden.Gustavo Nunes Goretkin
09/20/2023, 4:04 PMmain <- C1 <- C2 <- C3
and then I do a find-and-replace. I could commit the modifications due to the find-and-replace separately and get at the situation:
main <- C1 <- C2 <- C3 <- R1 <- R2 <- R3
and now I want to re-order the commits automatically so that they can be in the appropriate parts of the stack.Gustavo Nunes Goretkin
09/20/2023, 4:11 PMmain <- C1 <- C2 <- C3
and you turn it into
(main <- C123 , the_structure_you_lost)
Then you do the trivial find-and-replace
(main <- C123_fixed , the_structure_you_lost)
and you'd like to turn that into
main <- C1_fixed <- C2_fixed <- C3_fixedZiyao Wei
09/20/2023, 5:28 PMZiyao Wei
09/20/2023, 5:30 PMPR3 for the renaming operation, which might be good enough depending on the engineering processZiyao Wei
09/20/2023, 5:32 PMGustavo Nunes Goretkin
09/20/2023, 5:59 PMPR1 within PR4 .Gustavo Nunes Goretkin
09/20/2023, 6:00 PMgit absorb !Ziyao Wei
09/20/2023, 8:45 PMthat means you’re addressing a review comment inYeah that does need other people to but into this workflow, and if the fix is semantically meaningful it also doesn’t work 🙂 It is simple when it works though. Let me know if you findwithinPR1PR4
git absorb interesting! I think @Jacob Gold is thinking about bringing it into Graphite.Jacob Gold
09/20/2023, 9:07 PMGustavo Nunes Goretkin
09/20/2023, 11:28 PMAlan Derk
11/03/2023, 3:36 PMThis is on our roadmap for Q4 🙂This is fantastic.
absorb is the killer feature for stacked diffs IME. I joined the slack just to see if it’s on the roadmap. v. excited for this feature. Best of luck, with your work @Jacob Gold!
As Gregory Szorc (mozilla / mercurial dev) wrote on his blog about absorb :
Every so often a tool you use introduces a feature that is so useful that you can’t imagine how things were before that feature existed.I couldn’t agree more