开发者

Pushing from mercurial project to the svn project

开发者 https://www.devze.com 2023-03-19 05:26 出处:网络
I\'m working on a project that uses svn, but I like the way mercurial works. I can\'t force the other folks to use mercurial and convert the whole project, so I decided to use mercurial just locally.

I'm working on a project that uses svn, but I like the way mercurial works. I can't force the other folks to use mercurial and convert the whole project, so I decided to use mercurial just locally. Thus the situation is like this: I have a directory containing the svn copy of the remote repository, and another directory in which I work locally, under mercurial version control. The thing I'd like to do is to create a new repository in the directory containing the svn copy (and I've done it yet) and to push my changes from my local working directory to this new repository and pull changes from it.

This way I can avoid to copy manually each time my updates and merge manually, which is really a pain...

I've tried to do

hg push path/to/hg/repo/in/svn/folder

but I receive an error message like:

abort: the repository isn't related

(I'm not sure about this, the error message is in italian, and I'm not sure about the correct translation) and an exit code of 255 开发者_如何学Python(on Debian GNU/Linux).

I hope I've explained quite clearly my problem, thanks for help


Use hg push --svn after hg pull and hg rebase. See here for details.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号