Reputation: 27038
i have svn setup on my server: /home/svn/setup
i also have the files that i want them under svn control here: /var/www/html/trunk
how do i get the files from /var/www/html/trunk
under version control inside /home/svn/trunk
??
if i run svnadmin verify /home/svn/setup/
i get * Verified revision 0.
setup
is where i have svn installed. im thinking to ad the website file in another folder called trunk
any ideas?
THnaks
edit: if i do `svn import /var/www/html/trunk file:///home/svn/trunk -m 'Initial import'
i get svn: Unable to open repository 'file:///home/svn/trunk'
`
Upvotes: 1
Views: 1844
Reputation: 123
That means /home/svn/trunk is not where your initial repository is located. You have svn setup, but did you create a repository?
Upvotes: 0
Reputation: 287755
You'll have to checkout the svn repository into a working copy, in your case /var/www/html/trunk
(with svn checkout
). Then, add the files and commit
.
By the way, is there a reason why you're using svn on the local filesystem? A distributed version control system such as mercurial or git is faster, more scalable, and easier to setup to boot. For reference, with mercurial, you'd have just to type hg init
in /var/www/html/trunk
, and that would suffice to setup the repository.
Upvotes: 1