FUD
FUD

Reputation: 5184

SVN changes in imported files to working copy

I have create a svn repository and imported a folder into my svn repository using

svnadmin create repo
svn mkdir trunk -m "drunk"
svn import /home/my/folder file://home/my/svn/repo/trunk

i rsync the "/home/my/folder" from some other place everyday,

Also i had create a working copy on other machine using

svn co svn://myhost/repo

But when i do a svn update on my working copy, i dont get the rsynced changes from /home/my/folder. How do i correct this?

Upvotes: 0

Views: 431

Answers (2)

crashmstr
crashmstr

Reputation: 28563

First off, svn import does not create a working copy.

You need to make a working copy by doing a checkout on the machine that is going to get the rsync updates.

You also need to do a commit to that working copy after the rsync completes, otherwise your repository is not going to be updated and doing an update on another machine will not get anything.

Upvotes: 1

David W.
David W.

Reputation: 107030

First: Don't mix file:// with svn://. Use the same protocol on both systems even if the file is local to your system. Otherwise, you might accidentally change the permissions on the files and folders inside the Subversion repository which would cause havoc for everyone else.

When you import a directory (like you did), that directory doesn't become a Subversion working directory. You'll have to do a checkout to create a working directory and use that in Subversion.

I hope I am understanding your question correctly.

The working copy on the other system is showing the files you added. Is that correct?

Upvotes: 1

Related Questions