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.