문제

I am in the process of knowing Mercurial versioning system better, and I am considering convert from SVN.
Anyone already converted? Was that difficult for you and your team to switch? Can you give any advice to stay with SVN or go for Mercurial?

도움이 되었습니까?

해결책

I don't have experience with mercurial (use git instead) but the difference in experience between a good DVCS like mercurial or git vs. svn is something that you truly can't go back from once you've gotten past the learning curve.

  • Local commits free up your workflow, your approach to coding features determines when you commit instead of your commits affecting how you work.
  • Svn's linear revision numbers are -bad-. Commits (especially with branches) simply do not correspond well to a simple incrementing mapping.
  • Local branches make compartmentalizing features much easier and better, prototyping becomes much simpler.
  • (only slightly related, but) Working offline tends to allow you to make changes faster than your competitors.

I had a job recently that involved going back to using a centralized svn repository after using git for a year or two. I approached it by using the git-svn bridge, and found that I had great control over the commits compared to svn, and could make the commits and branches sit, roll over, and play dead in ways that gave me a useful advantage over my svn using co-workers, in addition to the large volume of commits that I made by comparison because of the very granular and frequent nature of doing local commits. It was a great benefit.

I really really recommend giving yourself some time with a DVCS.

다른 팁

Once you start, you'll never want to go back. The advantages are huge.

I intentionally avoided branching under SVN, because every merge required hours of tweaking. Now, I look forward to branching because it works so well. It has made developing new features so much easier.

Furthermore, the ability to work offline is fantastic.

This SO article covers the conversion process in detail (its quite simple). You'll be able to preserve your history, but benefit from a DVCS.

This SO Question deals with DVCS benefits in detail, so I'll mention a Mercurial specific advantage. If you use a GUI like TortoiseSvn, you'll be pleasantly surprised by TortoiseHg. This app is continually improved and makes it very easy to view your pending changes and historical changes. It took a while to get to this level of quality, but now, I hate using TortoiseSvn, because it is just worse when it comes to reviewing pending changes and deciding what you want to commit.

3 월 PU (필수)를 설치 한 다음 8 월 CU를 설치해야합니다.최근 CU에는 기본 출시가 기반 (이 경우 3 월 PU)까지 모두 포함됩니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top