You are not logged in.

#1 2009-03-09 17:22:27

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Svn

Hi All,

Just wondering if it's possible to copy a remote svn repo to my laptop so i can keep all the orignal comments etc?

i'm using sub versions and rapidsvn

cheers
matthew


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#2 2009-03-11 03:03:05

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Svn

You can have a working copy of the repository on your machine: just check out the code.

But if you mean all the log, then you want a dump of the repo. You need shell access to the repo though. See the wiki page: http://wiki.archlinux.org/index.php/Sub … nd_restore

Basicaly you "svnadmin dump repodir > file.dump"

If you don't have shell access, I think there is a clone feature of svn. Look it up on google. You could also import the repo in git so you can work offline. I do this when I'm on the train. You can even send your work back to the svn repo after! Its something like "git svn clone ...." and "git dcommit" I think.

Just a warning: don't just copy the directory containing the svn repo somewhere else. Dump it first and import it back elsewhere.

Offline

#3 2009-03-11 13:48:44

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Svn

big_gie wrote:

If you don't have shell access, I think there is a clone feature of svn. Look it up on google. You could also import the repo in git so you can work offline. I do this when I'm on the train. You can even send your work back to the svn repo after! Its something like "git svn clone ...." and "git dcommit" I think.

Its actually git svn dcommit, which you would run after you've used git add and git commit like on a normal git repo. It works pretty good, but be careful with branching and merging in git; svn isn't bright enough to handle it properly.

I'm pretty sure I've seen pages that tell you how to import a repo into git and then export it to a different svn repo on a different machine for cases where you don't have a root account on the machine hosting the svn repo.

Dusty

Last edited by Dusty (2009-03-11 13:49:02)

Offline

#4 2009-03-11 13:56:32

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Svn

Dusty wrote:

Its actually git svn dcommit, which you would run after you've used git add and git commit like on a normal git repo. It works pretty good, but be careful with branching and merging in git; svn isn't bright enough to handle it properly.

I have found that using git only as a "offline svn" worked well. But I would add: be careful with it anyway, branching or not. I don't know why, but I've lost an two hours of work because git tried to rebase before commiting so it overwrote what I did. I probably did something wrong, I'm still new to git, but I was _really_ angry at it...

Here are some links I gathered:
Converting a Shared Subversion Repository to Git http://notahat.com/posts/25
Git - SVN Crash Course http://git.or.cz/course/svn.html
Moving from Subversion to Git for revision control http://www.aidanf.net/blog/2007/11/22/m … on-control
A Subversion User Looks at Git http://speirs.org/2007/07/19/a-subversi … ks-at-git/
From subversion to git http://vafer.org/blog/20080115011320
How to convert from Subversion to Git http://pauldowman.com/2008/07/26/how-to … on-to-git/

Offline

Board footer

Powered by FluxBB