将Mercurial hgsubversion扩展与SVN外部一起使用 [英] Using the Mercurial hgsubversion extension with SVN Externals

查看:81
本文介绍了将Mercurial hgsubversion扩展与SVN外部一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Mercurial与Subversion存储库进行通信,并且该存储库当前正在使用SVN外部组件来引入另一个存储库.

I'm using Mercurial to talk to a Subversion repository, and the repository is currently using SVN externals to pull in another repository.

hgsubversion与存储库进行通信非常有效,但似乎不适用于SVN外部.有没有一种方法可以配置它来使用它?

hgsubversion works really well for communicating with the repository, but it doesn't seem to work with SVN Externals. Is there a way to configure it to work with this?

编辑:部分解决方案

SVN外部组件可以被下拉.在存储库中,添加一个名为.hgsvnexternals的新文件(如果Windows在创建文件时抱怨文件名不足,请尝试运行copy .hgignore .hgsvnexternals).关于空格,它有些挑剔,并且应包含类似以下示例的文本:

SVN Externals can be pulled down just fine. In your repository, add a new file called .hgsvnexternals (if Windows is complaining about not having a file name when you create it, try running copy .hgignore .hgsvnexternals). It is finicky about whitespace, and should contain text like the following sample:

[.]
 MyExternalProject svn://some.url/svn/MyExternalProject/trunk

该行的开头,在名称和URL之间有一个空格.如果间距不正确,则无济于事.将其添加到文件后,返回命令行并运行:

There's a space at the beginning of the line, and between the name and the URL. If the spacing isn't right, nothing works. After adding this to the file, go back to the command line and run:

hg svn updateexternals

然后应从Subversion获取外部文件.新的问题是,hg status现在将显示所有在其前面带有?的新"文件.

It should then fetch the external from Subversion. The new problem is that hg status will now show all of the "new" files with ? in front of them.

问::您将它们hg add到存储库中,还是将外部文件添加到.hgignore?

Q: Do you hg add them to the repository, or add the external files to .hgignore?

尝试任一选项都会导致相同的问题.我无法hg push对克隆主服务器所做的更改.

Trying either option leads to the same problem. I can't hg push my changes to the clone's master.

推荐答案

它有效,但仅适用于标准布局(即主干/分支/标签)克隆.在工作之前,我们需要针对标准布局修复一些错误.

It works, but only with standard layout (that is, trunk/branches/tags) clones. We need to get some bugs fixed against standard layout before it'll work.

在接下来的几天中查找一些新文档(或检查hgsubversion 邮件列表档案用于外部的修补程序线程.

Look for some new docs in the next few days (or check the hgsubversion maillist archives for the patch threads) on externals.

这篇关于将Mercurial hgsubversion扩展与SVN外部一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆