Fossil Forum
Post: Did I misunderstood the usage of "fossil cherrypick --backout"?
I have a branch with four commits.
Commits 1, 2 and 4 are small changes in text files. Commit 3 is a series of renames in other files, that I don't actually need renamed.
I merged the branch to trunk, and then ran
fossil cherrypick --backout 3
fossil status still shows the renames.
Is this intended and I misunderstood the usage of the command? Is this a bug?
fossil cherrypick --backout 3
That sounds like a double negative to me: according to the docs fossil cherrypick is the same as fossil merge --cherrypick so what you are saying is
fossil merge --cherrypick --backout 3
Which reads like please apply only 3 and also backout 3.
You may want fossil merge --backout 3 ?
fossil cherrypick --backout 3
That sounds like a double negative to me: according to the docs fossil cherrypick is the same as fossil merge --cherrypick so what you are saying is
fossil merge --cherrypick --backout 3
Which reads like please apply only 3 and also backout 3.
You may want fossil merge --backout 3 ?
cherrypick 1 2 4 sounds safer to me, but I'm not a big user of merge.
A cleaner path would be to update to commit 2, then cherrypick 4 down on top of it as a new branch-of-the-branch. Now merge that down to trunk.
Refinement: close the branch containing 3 so that no one is tempted to continue atop the branch containing the unwanted rename.