Question

So I went through all the steps to make an svn repo.

1) I created the repo by calling

 svnadmin create /path/to/repo

2) I added the folder that holds the files I want in my repo using

svn import /path/to/folder

3) I also made a post commit hook that calls svn update on that folder

4) And then on my remote system I was able to check it out all without any problems. Now the problem is that when I commit and check the log I see the line

Skipped '/path/to/folder'

Basically it keeps skipping the folder and won't apply the changes I commit to it. I checked the folder and see there's no .svn folder in there which repos usually have which I suspect is the issue...or not.

Anyone know what could be the issue? I want that folder to be update the files when I make commits

Était-ce utile?

La solution

Thanks to some help from bishop and my friend I figured out what the problem. As bishop stated "It encodes, rather than mirrors, the content's structure" which I didn't realize. I thought it directly altered whatever directory(ies) were imported into it

So basically what I did was

  1. Perform steps 1-3 (setting up and adding the directory to the repo) then
  2. Delete the existing folder that was imported into the repo and checkout in the same location

Basically [2] allowed me to have a remote working copy on the server (with the expected .svn folders).

That way, whenever I committed my local copy, the post-commit hook would update the remote working copy (on the server) as expected.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top