SVN import
Every once in a while I end up starting a project, and since it happens so infrequently I always forget the steps to set things up in subversion.
I won’t go through all the steps you need to start from scratch with subversion, but here’s the important part about adding a project to your repo.
svn import <path to project> file:///<path to svn root>/<project folder> -m "Initial import"
svn import /home/PROJ file:///home/svn/PROJ -m "Initial import"
import: This adds a directory tree to your
path to project: Actual path to directory tree where code sits
path to svn root: Path to repo
project folder: Name for project folder in svn
The one thing I’m not sure how to do right now is after I import the project. The folder with the code is not a subversion checkout. So what I usually end up doing is checking out the project and replacing the checked out version over my original code. Not sure if there’s a better way to do that…
You can svn updatd to straightaway use ur imported local dir.