Using Mercurial locally, only with Subversion server

人走茶凉 提交于 2019-12-20 10:25:20

问题


We are using a Subversion server at my job for source control. I was thinking that rather than keeping up with my own branch, I would run Mercurial on my workstation, commit locally, and then commit to the Subversion trunk whenever I’m done with whatever feature I’m working on.

From my understanding of DVCS this is theoretically possible. Can anyone offer reference to any tutorials on this specific type of integration, or point to any tools that will make such a process as seamless as possible?


回答1:


Have you looked at this page in Mercurial wiki ?




回答2:


You should really give hgsubversion a try, despite the warning. It is the only two-way bridge between Subversion and Mercurial.

When I tried it months ago it worked very well and there has been a lot of development done sine. That is why the extension is tracking the development version of Mercurial (hence the error about encoding in the comment above).

Luckily, Mercurial is very easy and non-intrusive to install. Download the latest Mercurial, unpack it and run

% make local

That will compile the C modules. Then symlink hg into your path and add the present working directory to your PYTHONPATH:

% export PYTHONPATH=$PWD:$PYTHONPATH

Now install and active hgsubversion. When Mercurial 1.3 is released on July 1st you can just use that version. I believe hgsubversion will then make a stable repository and track the stable Mercurial releases.



来源:https://stackoverflow.com/questions/799860/using-mercurial-locally-only-with-subversion-server

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