Mercurial — revert back to old version and continue from there

前端 未结 7 1048
挽巷
挽巷 2020-11-27 09:05

I\'m using Mercurial locally for a project (it\'s the only repo there\'s no pushing/pulling to/from anywhere else).

To date it\'s got a linear history. However, the

7条回答
  •  甜味超标
    2020-11-27 09:28

    After using hg update -r REV it wasn't clear in the answer about how to commit that change so that you can then push.

    If you just try to commit after the update, Mercurial doesn't think there are any changes.

    I had to first make a change to any file (say in a README) so Mercurial recognized that I made a new change, then I could commit that.

    This then created two heads as mentioned.

    To get rid of the other head before pushing, I then followed the No-Op Merges step to remedy that situation.

    I was then able to push.

提交回复
热议问题