Reputation: 102306
I have a project sitting in a archive. The project and files were provided by someone else. The project does not use a version control system. I want to unpack the project and adorn it with versioning. I want to do it in-place so I can make my changes and then svn diff
to see my changes (and create a diff for a patch).
When I try to place versioning on the unpacked library, I get the following:
$ svnadmin create
svnadmin: E205000: Repository argument required
And:
$ svnadmin create .
svnadmin: E200011: Repository creation failed
svnadmin: E200011: Could not create top-level directory
svnadmin: E200011: '.' exists and is non-empty
And:
$ svnadmin create `pwd`
svnadmin: E200011: Repository creation failed
svnadmin: E200011: Could not create top-level directory
svnadmin: E200011: '/home/jeffrey/cryptlib-beta' exists and is non-empty
I don't want to set up an SVN server or jump through other hoops like checking out from myself (or other steps that make no sense to a regular user who is only concerned about changes/differences).
Is it possible to create a svn version controlled project in-situ? If so, would anyone know the commands?
Thanks in advance.
Upvotes: 0
Views: 2460
Reputation: 97282
During setup you have to use three directories. Let name it SOURCE
, REPO
, WORK
. Later you'll use only REPO
and WORK
Process step-by-step
cd /SOME/PATH
mkdir SOURCE
cd /SOME/ANOTHER/PATH
mkdir REPO
cd REPO
svnadmin create .
cd /SOME/PATH/SOURCE
svn import file:////SOME/ANOTHER/PATH/REPO -m "Initial Import"
cd /SOME/ANOTHER-AGAIN/PATH
mkdir WORK
cd WORK
svn co file:///SOME/ANOTHER/PATH/REPO .
rm -r /SOME/PATH/SOURCE
Edit files in WORK, diff it with base-version, if needed
Upvotes: 4