Mercurial: how do I revert to a particular revision?

前端 未结 3 1370
隐瞒了意图╮
隐瞒了意图╮ 2021-02-18 15:18

I\'m working on a live server. I\'ve updated to tip and it\'s caused problems: I need to revert back to a particular changeset (388) where things were OK.

I have no chan

3条回答
  •  花落未央
    2021-02-18 15:38

    I don't think it is really clear what you want but my interpretation would be hg update -C -rev 388 but you could equally well be after revert, or possibly (unlikely) even rollback. my answer to this question gives a good difference between update and revert

    you really need to work out what you want to see in the working copy AND what you want the state of the history to be like to choose between them

提交回复
热议问题