Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 326083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:16:36+00:00 2026-05-12T09:16:36+00:00

I am trying to learn how to use subversion. On my mac os x

  • 0

I am trying to learn how to use subversion. On my mac os x server I have:

~/public_html (lots of files)

I also have /var/svn/myproject (this is the svn directory where I used svnadmin ~/public_html /var/svn/myproject)

On my MacBook Pro, I used svn checkout svn checkout svn://myserver/mysvnpath

It checks out the files.

I edit a file and put something simple in.

I commit and it gives no error and says I am at revision 2.

My question:

When I committed the updated file, where did it go on the server? I never see it changed in ~/public_html.

Where is my updated file on the server? I looked in the revision files and I can see 2 in revs has my change (which is just the addition of one line, phpinfo();).

Thank you for any help.

EDIT: based on comments I can see I really don’t understand.

EDIT: I tried svn update in ~/public_html but my index.php file is never changed. Interestingly, I have another machine that I checked out the code and it shows the new revision (2). I just can’t get it back into ~/public_html. If I have to manually copy it back to ~/public_html then how can I be sure the most current version is being used. What good is the repository at this point? I know it tracks changes but I want it to push out the latest version if I update my web directory on the server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:16:36+00:00Added an answer on May 12, 2026 at 9:16 am

    I think this SVN FAQ entry will help you: “I’m managing a website in my repository. How can I make the live site automatically update after every commit?“:

    This is done all the time, and is
    easily accomplished by adding a
    post-commit hook script to your
    repository. Read about hook scripts in
    Chapter 5 of the book. The basic idea
    is to make the “live site” just an
    ordinary working copy, and then have
    your post-commit hook script run ‘svn
    update’ on it.

    In practice, there are a couple of
    things to watch out for. The server
    program performing the commit
    (svnserve or apache) is the same
    program that will be running the
    post-commit hook script. That means
    that this program must have proper
    permissions to update the working
    copy. In other words, the working copy
    must be owned by the same user that
    svnserve or apache runs as — or at
    least the working copy must have
    appropriate permissions set.

    If the server needs to update a
    working copy that it doesn’t own (for
    example, user joe’s ~/public_html/
    area), one technique is create a +s
    binary program to run the update,
    since Unix won’t allow scripts to run
    +s. Compile a tiny C program:

    #include <stddef.h>
    #include <stdlib.h>
    #include <unistd.h> 
    int main(void) 
    {
       execl("/usr/local/bin/svn", "svn", "update", "/home/joe/public_html/",
             (const char *) NULL);  
       return(EXIT_FAILURE);
    }
    

    … and then chmod +s the binary, and
    make sure it’s owned by user ‘joe’.
    Then in the post-commit hook, add a
    line to run the binary.

    If you have problems getting the hook
    to work, see “Why aren’t my repository
    hooks working?”.

    Also, you’ll probably want to prevent
    apache from exporting the .svn/
    directories in the live working copy.
    Add this to your httpd.conf:

    # Disallow browsing of Subversion working copy administrative dirs.
    <DirectoryMatch "^/.*/\.svn/">
    Order deny,allow
    Deny from all 
    


    An alternative: You could use the in-place import. Look here how to do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to learn advanced sql and how to use system queries (sql server).
I'm trying to learn to use SDL for a little game I'm writing ,
I am trying to learn CodeIgniter to use for a shopping site, but I
I am trying to learn how to use MSBuild so we can use it
In trying to learn how to create objects in ActionScript, I have had no
I'm trying to learn how to write tests. I'm also learning Java, I was
I am trying to learn and use an SDK for a vendor's product. Unfortunately,
I'm trying to learn to use vimdiff well. Currently I figured out how to
I am trying to learn to use buffer overflow attack in Ubuntu. Unfortunately, I
I am trying to learn to use the wx packages to make GUI programs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.