How to import SVN Repository into Assembla Mac Tutorial

This took be a bit. You want to create a repository on Assembla that you can access from anywhere and contribute. The problem is you created a repository successfully but you can’t add or import files to it. This is tutorial for you if you are using mac (macintosh) computer.

Ok so first create your SVN repository on Assembly. Now you need to import files. If you do not really have an SVN Repository locally, you will have to create one. Simple zipping a files or folder and importing to Assembla does not work.

So create a local repository. I have used SmartSVN (Free version) for that. Import all your files to it. Now you have a fully work local repository where you can add/commit changes.

Now create an SVN Dump. SVN Dump is not the same as zipping your SVN Reposiory. You will have to use svnadmin command to create the dump. The following is the command that you need to run

svndadmin dump /local-path-to-repository/repository > my_rep_dump.txt

Not that that /local-path-to-repository/ is the actually path where the repository was created. In my case the command was

svnadmin dump /Projects/Repositories/Project1 > Project1_dump.txt

SVN Repository on Mac

The following it the directory structure of my “Project1” repository. After this zip the folder and upload it to Assembla using import/export feature. It would say “The file has been queued”. It would probably take 5 minutes when you whole repository will appear with complete history.

Note that

“>” is redirection operator. It redirects the outout of the command to a file.
Project1_dump.txt, is the file where the output is directed to. You can use any name or extension for this file. You need to zip this file and upload it. (do not modify it in any way!)

directory is already under version control SmartSVN

Directory already under version control - smartSVN error

Directory already under version control – smartSVN error

I was getting this error while adding my project in SmartSVN and I had no clue whatsoever

*directory* is already under version control SmartSVN

The reason I was getting this error was because I had select the root folder and the sub folder and choose to add the files recursively . That basically added the sub-folder two time, one time as part of recursion and a second time because it was explicated added.

Simple solution is, select only the root folders and click add *recursively* or select all folder and choose to “Only Add Directory”.  The first solution worked better for me btw. Hope this helps someone.

SmartSVN Add files recursively

SmartSVN Add files recursively