How do I fix a bug in a previous release version via mercurial?

Deadly 提交于 2019-12-04 18:35:20

You don't need to explicitly create a branch. The way I would do it is this:

  1. Update to the point where you released (6.1.1 in the master branch).
  2. Make changes and commit them.
  3. Tag the latest commit in master as 6.1.2.
  4. Pull those changes into the develop branch.
  5. Continue working.

If you need to make more changes, then simply repeat the above but using the 6.1.2 tag in the master branch.

You really shouldn't need to create a named branch unless you truly want to have a full-out branch. What you probably want to do is:

  1. update to 6.1.1
  2. make the edits
  3. commit (will create a new un-named branch)
  4. tag that new revision as 6.1.2.
  5. You can then merge that edit into your develop branch

As long as you are updating to a revision earlier than the tip on the Master branch, the commit will make a new branch off of it.

This will leave the version tagged so you can easily get back to it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!