Hi ALUG,
I have a Subversion repository which is trapped on a server to which I no longer have (reliable, at least) shell access. (ATM, in fact, I don't even have access to the WebDAV interface as Apache is down.) I want to move this repository to a different server and would be happy to convert to a different SCM if possible (quite fond of darcs, keep meaning to learn more about git).
I still have the most recent working copy checked out. Is it possible to use this working copy to start a new SVN repository, retaining all the history? Or can I only dump from the current *repository* (on the server) to make a new repository?
Best, Richard
On 6 June 2010 13:12, Richard Lewis richardlewis@fastmail.co.uk wrote:
I have a Subversion repository which is trapped on a server to which I no longer have (reliable, at least) shell access. (ATM, in fact, I don't even have access to the WebDAV interface as Apache is down.) I want to move this repository to a different server and would be happy to convert to a different SCM if possible (quite fond of darcs, keep meaning to learn more about git).
I still have the most recent working copy checked out. Is it possible to use this working copy to start a new SVN repository, retaining all the history? Or can I only dump from the current *repository* (on the server) to make a new repository?
Sadly an SVN working copy has no history. I'd recommend making a local copy of the SVN repository (a good opportunity to make a backup) and then using the import tools for your new SCM (which could take some time, depending on the number of revisions in SVN).
Good luck, Tim.
On Sun, June 6, 2010 13:12, Richard Lewis wrote:
I still have the most recent working copy checked out. Is it possible to use this working copy to start a new SVN repository, retaining all the history? Or can I only dump from the current *repository* (on the server) to make a new repository?
The latter. Your working copy isn't sufficient to rebuild a repo from.
On 6 June 2010 16:11, Martin A. Brooks martin@hinterlands.org wrote:
On Sun, June 6, 2010 13:12, Richard Lewis wrote:
I still have the most recent working copy checked out. Is it possible to use this working copy to start a new SVN repository, retaining all the history? Or can I only dump from the current *repository* (on the server) to make a new repository?
The latter. Your working copy isn't sufficient to rebuild a repo from.
I would agree.
You might be able to: find the HEAD revision, and then have a script that pulls the svn diff and svn log for rev n-1:n all the way to PREV:HEAD.
Then your script could duplicate that into your new repo.
Not sure if it would work with branches or tags.
Srdjan