Other Updating final version of code using Subversion

drhowarddrfine

Son of Beastie

Reaction score: 2,496
Messages: 4,441

I've never used Subversion before and, actually, I'm using svnlite in the base. Just this morning I quickly read through a tutorial and seem to have everything working. I created a directory at /www/drhoward with a do-nothing web page, imported it into a repository at /var/svn, created a working copy on the server at /www/test, made some changes, committed it and everything seemed to work as planned. The one thing I don't understand is how to update my committed code changes in the /www/drhoward directory? When I did svnlite commit nothing changed there.
 

eternal_noob

Daemon

Reaction score: 885
Messages: 1,166

Hi,

svnlite commit commits the changes to the repository in /var/svn.
In order to update the website in /www/drhoward, you need to svnlite checkout the repository there and then do a svnlite update.

See
3087570_orig.jpg
 
OP
D

drhowarddrfine

Son of Beastie

Reaction score: 2,496
Messages: 4,441

Yeah, I've done all that.

I am wondering if my problem is that I needed to make my original directory a working directory. iirc, I created the original repository from the existing directory but didn't do anything else. Does the original directory need to be added as a working directory? Then when commits are made from my working directory, I svn update that?
 

eternal_noob

Daemon

Reaction score: 885
Messages: 1,166

Hi,

The working copy is your checkout, however it was obtained. There's no need to tell the repository.

You just create the repository, check it out and then commit changes to it. If you want to have those changes on the web server, you have to checkout the repository there.

Better yet, use sftp to upload the files, i am not a fan of checking out repositories on the web server for security reasons.
 
OP
D

drhowarddrfine

Son of Beastie

Reaction score: 2,496
Messages: 4,441

You just create the repository, check it out and then commit changes to it. If you want to have those changes on the web server, you have to checkout the repository there.
I think I get it now and was doing it backwards. I'll try this again sometime later today. Thanks.
 
OP
D

drhowarddrfine

Son of Beastie

Reaction score: 2,496
Messages: 4,441

And that was the problem. I thought I only had to svnlite import the files into the repository and any changes in other checkouts would update that. I just had to create the repository and svnlite add files, then svnlite update to bring it all together.
 

PMc

Daemon

Reaction score: 691
Messages: 1,393

And that was the problem. I thought I only had to svnlite import the files into the repository and any changes in other checkouts would update that.

Ah, no, the import source is no longer part of the game after the import. It's considered read-once write-never.
 

Lamia

Aspiring Daemon

Reaction score: 238
Messages: 803

And that was the problem. I thought I only had to svnlite import the files into the repository and any changes in other checkouts would update that. I just had to create the repository and svnlite add files, then svnlite update to bring it all together.
I was waiting to see you mention svn[lite] add FILENAME_HERE & svn[lite] commit -m 'comment here' and lastly svn[lite] checkout.

While I use svnlite commands in ports and src, I use svn commands in other projects.
 
Top