views:

71

answers:

1

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

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?

EDIT: Partial Solution

SVN Externals can be pulled down just fine. In your repo, 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

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

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

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

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

+1  A: 

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.

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

durin42
Awesome, thanks! I will update the question in a few days then.
John Nelson