I'm going to put this feature on hold until the revert commit ability is released in Rugged. Initially I was trying to achieve this functionality by doing some work directly on the bare repository but that kind of approaches are not longer encouraged and bring bad remembers to the team :). cc/ @ayufan@DouweM
@dzaporozhets do you have an idea to get the merge commit id from two branches with rugged? I've only found somecli tools until now. The only thing that I've in mind now is to store the commit id after the merge has been performed, this means that revert will only work for MRs created after this feature is released.
The only thing that I've in mind now is to store the commit id after the merge has been performed, this means that revert will only work for MRs created after this feature is released.
@rdavila That's definitely the easiest/most performant way, and perfectly acceptable :)
@rdavila Keep in mind that with fast-forward merges in EE, there will be no merge commit. Once this is done in CE, make sure you create an MR for EE that doesn't save the merge commit ID for those merges, and doesn't show the Revert button if there isn't a merge commit ID.
The only thing that I've in mind now is to store the commit id after the merge has been performed, this means that revert will only work for MRs created after this feature is released.
@DouweM@JobV the current version of Rugged that includes the revert commit ability is a pre-release version(0.24.0b12). I suggest we should wait for a stable release before merging the Revert Commit functionality given I've found a bug the other day that I was playing with it: https://github.com/libgit2/rugged/issues/566
@voarsh thanks. I'm going to wait for a new pre-release with the fix. If there are not a pre-release in the next few days then I'm going to use the current pre-release which is used by GitHub in production. cc/ @DouweM