SVN Weirdness: is this possible is not my fault

(I don’t care if this is my fault, but rather, why everything happens, of course ...)

I have a rails site in SVN on a remote server. On my local copy, I make a switch (SVN switch http: // whatever / branch .), And then everything is completely strange and the site does not work, I finally track it, and it turns out that part of the assembly (in particular, the app / directory config) points to the wrong branch. Note:

  • I never switch using anything other than the svn command line
  • I just switch to installation root
  • I always switch as root (sudo -s), and I'm sure that the permissions were set correctly on the whole tree (chmod -R 777)

Any ideas on how part of the working directory might end up pointing to the wrong place? This is not the first time in my memory that some part of the working directory points to the wrong place ... why did this happen?

+3
source share
2 answers

The official Subversion FAQ contains a whole section about switching issues . It says:

In some cases, when there are unbelievers (and possibly ignored) items in the working copy, the svn switch may receive an error message. The switch stops, leaving a working copy of half circuit-switched.

Their advice is only to switch from a clean working copy.

.

, ( ) .

+7

, , , , . ( ). svn status , .

svn switch

(svn help switch)

, .

-1

Source: https://habr.com/ru/post/1709135/


All Articles