Test whether svn REPO changes are reflected in Working Copy
Posted
by
user492160
on Super User
See other posts from Super User
or by user492160
Published on 2012-11-29T20:19:18Z
Indexed on
2012/11/30
5:10 UTC
Read the original article
Hit count: 479
Requirement
Changes will be made to the REPO directory and this should get updated to wc(working copy) as opposed to the normal way of WC > REPO.
Senario:
My svn repo- /var/www/svn/drupal
My checkout-dir/working-copy- /var/www/html/drupalsite
So I've done:
edited post-commit hook to contain: "/usr/bin/svn update /var/www/html/drupalsite"
I won't make any change to svn WC. I'll make changes to svn REPO- /var/www/svn/drupal.
After changes are made to svn repo, run "svn commit /var/www/html/drupalsite". This will trigger the post-commit hook. This inturn will run "svn update /var/www/svn/drupal" and thus my WC will get updated with the changes of REPO.
Query
a. Would the above steps 1-3 help achieve my 'Requirement'?
b. I'd need advise on how to test if the above setup works successfully or not. I'm at loss about the success of steps 1-3 the reason why query(a) is present. This is a bit more of a concern for me.
NB: I'm new to subversion. Whatever I've configured till now have been done by reading articles online. Reason for query (b) is because I'm not into development. It seems to be a php drupal website and I happen to be setting it up. So I'm not aware as to how to make a "PROPER" change in REPO so that it gets reflected in WC. If reflected, my configs are right and the team can start on development. I manually put a random file/folder into REPO dir for seeing a change in WC and ran steps 1-3 but was of no avail and later on learned that it was NOT the way to make a change to a REPO.
Pleas advise. Thanks
© Super User or respective owner