Can I commit only parts of my code using SVN or Mercurial?

前端 未结 6 1426
梦谈多话
梦谈多话 2021-02-01 02:11

I use Tortoise SVN usuallly, but I have been looking into Mercurial since it is a distributed revision control system.

What I am looking for, in both systems, is a tool

6条回答
  •  再見小時候
    2021-02-01 02:50

    I asked a similar question just a little while ago, and the resulting answer of using the hgshelve extension was exactly what I was looking for.

    Before you do a commit, you can put changes from different files (or hunks of changes within a file) on the "shelf" and then commit the things you want. Then you can unshelve the changes you didn't commit and continue working.

    I've been using it the past few days and like it a lot. Very easy to visualize and use.

提交回复
热议问题