Subversion question

Dear Lazyweb,
Is there any method or way where a set of files hosted in a given subversion repository can be “imported” into another repository (inside a directory in the target repository) with all the change and other information intact ? Ideally this should not involve filesystem access to the SVN server.

The reason I ask for this is, it has been planned that the source of Pessulus be integrated into the Sabayon tree, and I’m not sure how to do the transfer inside SVN. Any kind of information on how to do this would be highly appreciated here. More information is available in Sabayon’s wiki page.

Commentary

Leave a response »

  1. 1. 1 year, 3 months ago
    Eskil
  2. 2. 1 year, 3 months ago

    How about tailor, using svn and both source and target?

    http://wiki.darcs.net/DarcsWiki/Tailor

    Dan Young
  3. 3. 1 year, 3 months ago

    If you just want to *refer* to another repository, you’ll want to use svn:externals to accomplish this.

    http://svnbook.red-bean.com/en/1.0/ch07s03.html

    Specifying a revision number is considered good practice when doing this.

    If you actually want to permanently move the Pessulus source into Sabayon, I believe the recommended course of action is to use dump both repositories and then reimport the dump files (but this requires admin access to the repository itself):

    http://svn.haxx.se/dev/archive-2003-05/1769.shtml

    Sandy
  4. 4. 1 year, 3 months ago

    I second Dan Young’s suggestion about using Tailor.

    I’ve used tailor to “replay” bzr transactions to svn. I’d imagine it won’t be a far stretch to have tailor replay svn transactions between differents repos/branches.

  5. 5. 1 year, 3 months ago

    This page describes quite well what is needed to do something like that:
    http://svnbook.red-bean.com/en/1.0/ch05s03.html
    although this requires access to the server it is the only good way I could find.

    Using svnadmin dump to dump a repository to a file. Then using svndumpfilter to filter out what is needed. And then svnadmin load –parent-dir import to load the filtered content into another repository.

    Too bad there is no svn copy that can copy between repositories…

    Alexander Broekhuis
  6. 6. 1 year, 3 months ago

    svn:external seems to be what you’re looking for

    Rémi
  7. 7. 1 year, 3 months ago

    If you want a “symlink” to the previous directory, you can just use svn:external like others have said.

    If you actually want to copy the data, you can use Tailor, Git, or SVK. I tried using Tailor a few years ago and it utterly failed. I then did it with SVK and it worked but was unnecessarily difficult. If I were to do it today I’d use git-svn, but that’s just because I’m turning into quite the Git junkie.

    Good luck!

    sb
  8. 8. 1 year, 3 months ago

    Look at SVN-Mirror

    Sergio Fernández
  9. 9. 1 year, 3 months ago
    Murray Cumming

Trackbacks

  1. [...] know how I managed to miss it earlier. :-). ..and a big thanks to all to all who responded to my Subversion question post. I have started a discussion in the Sabayon list on possible ways to go forward, and svn2svn [...]

    Moving to Gutsy « Sayamindu’s Ramblings

Leave a comment, a trackback from your own site or subscribe to an RSS feed for this entry. Trackback URL for this entry Comments feed for this entry

Leave a response

Leave a URL

Preview