简体   繁体   中英

adding hg after svn and pushing

We used to have the production site under SVN control. We are now working in mercurial with bitbucket.

So what I have locally is a folder where there is both a .svn and a .hg directory.

But what I want to do is:

  • Remove svn control from the local folder
  • Stay on mercurial
  • Still be able to push changes to SVN on the server.

Could can I do this?

There are a couple of choices when you want to work with subversion listed here .

I've used hgsubversion and it is quite restrictive in that it needs you to work in such a way that SVN will be able to cope with. It means that you need to use hg rebase a lot and it might be tricky to manage in a team - particularly if not all of the team will be pushing to SVN.

I've not used MQ to interface with SVN so I can't comment on how easy that might be.

Personally I would strongly recommend against having both Mercurial and Subversion VCS. Aside doubling administration time for management different VCS, it mostly negates any benefits of using Mercurial in a first place.

I have been through similar path before - working locally in Mercurial whilst officially there was only SVN repo. Well, I got used to flattening revision history to get in more digestible by Subversion but I was not anything close to pleasant experience.

Once we eliminated Subversion out of the equation my life started to be significantly happier.

Probably with small projects the pain in not that noticeable but having co-existing source control system just add up unnecessary development workflow steps I would avoided.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM