• Georges Racinet's avatar
    Mercurial rebase for topics · 5f6de060df79
    Georges Racinet authored
    Closes #280
    This is enough for merge requests based on topics, which
    currently would display a 'rebase' button if the method is
    For now we add a hard check that the branch being rebased is
    related to a topic, that makes for a simple revset.
    As in the case of squashs, the protection against concurrent
    rebases seems at first sight to be unneeded (the rebase itself
    is atomic enough, and a subsequent would fail because it'd create
    instabilities) but because of #277 we have to be cautious
    with concurrency and avoid potential thundering herds of shares.
    This will be done for both squash and rebase in a follow-up that
    would simply test for presence of a share.