The code is as easy as:
p.install_app('SVN', init_from_url=repo['location'])
But we should have a UI for it. Probably something that works after you install the tool would be best. And make sure the tool goes into 'analyzing' state or something like that, so users know that it's working on it.
Git and hg can be initialized the same way, but that's not really necessary since they're distributed SCMs and you can push the repo yourself.
(classic SVN import happens from the shell: http://sourceforge.net/apps/trac/sourceforge/wiki/SVN%20adminrepo)
Originally by: tlaino
Hi,
I'm facing a problem similar to the one of other guys on sf. I've created a new Beta Project and I would like to import into allura the svndump of my previous project. Is there a straight way of doing that?
I've found information for the Classic (which worked), but again I would be interested in going with allura.
Thanks!
Teo
This was answered in IRC with [forge:community-docs:Subversion] containing the instructions.
Originally by: *anonymous
Not entirely true unfortunately. Recently the behavior of the creation of the svn repository has been changed. The repos is created always non-empty (i.e. with a trunk, branches, tags) at revision 1 (instead of 0). This makes impossible to use svnsync. So the question is still open and unfortunately at the moment nobody knows how to solve it (see ticket: http://sourceforge.net/apps/trac/sourceforge/ticket/22299).
forge rc/2541
QA: go to project admin, install a SVN tool, then choose the import option. Put in a valid SVN url. Wait. It should import the repo. Also note the suitably terrifying message.
Originally by: *anonymous
Hi,
When will the feature of svn repository import become available?
Could you please give a raw estimate?
We should push this feature live sometime this week.
Originally by: raoul-b
Hi,
Thanks!
And what about access via the shell service?
We have separate work to do for that. It is in internal testing, so shouldn't be too long until it's available.
Originally by: raoul-b
Hi,
Ok, thanks for the good news.
Where can I find information about it
and get noticed when it's available?
Is there an issue/"bug" report for it?