Revision Control: Subversion

Subversion references

url Description
https://svn3.cs.rpi.edu/reponame Web based repository browser
http://svnbook.red-bean.com Oreilly documentation for subversion
subversion.apache.org/ Subversion packages and binaries
http://tortoisesvn.tigris.org Win32 GUI for subversion

Clients

HOWTO: Subversion

  • How to checkout a subversion sandbox.
    • mkdir -p $HOME/sandbox
    • cd $HOME/sandbox
    • svn co https://svn3.cs.rpi.edu/xyz
      • This command will check files out of the xyz repository into a directory named sandbox/xyz in your home directory.
    • svn co https://svn3.cs.rpi.edu/xyz foobar
      • This command will check files out of the xyz repository into a directory named sandbox/foobar in your home directory.
    • (see the Problems section at the bottom of the page if you have difficulty)

  • How to check modified files into subversion ( file xyz/README modified )
    • cd sandbox/xyz
    • svn status # determine what files were modified
    • svn ci README # Check edits into subversion and enter a meaningful description of the changes made.
    • svn ci # 'svn ci' can also be run w/o arguments to recursively commit any changes made in the sandbox.

  • How to place a new file under revision control
    • cd sandbox
    • date >> README
    • svn add README
    • svn status # will display 'M README' for a modified file
    • svn ci README # Checkin the edits

  • How to create a new directory in subversion
    • cd sandbox
    • svn mkdir foo
    • svn ci foo

  • How to determine what files have been modified
    • cd sandbox
    • svn status # recursively check for modified files. 'M'-modified, '?'-file is not under revision control.

  • How to delete a subversion file
    • cd sandbox
    • svn delete README
    • svn status # 'D README' will be displayed
    • svn ci README # record the deletion

  • How to remove executable attribute from files
    • svn propdel 'svn:executable' file1[, file2 .. fileN ]

  • HOWTO: Ignore generated or unversioned files (directory attribute)
    • cd ${sandbox_directory_containing_elements_to_ignore}
    • svn propset svn:ignore ${list_of_elements} ${dot_directory}

Request creation of a subversion repository

HOWTO: Grant/restrict user access

Problems

403 Forbidden

  • If you receive the following message while trying to checkout code from a repository
    • svn: Server sent unexpected return value (403 Forbidden) in response to OPTIONS request for 'https://svn3.cs.rpi.edu/${repository}'
  • It means that the account you are trying to interact with the repository has not been granted access
  • Resolution
    • Contact the repository maintainer and request to be added
    • Contact labstaff if you are unsure who to contact or require additional help.


-- JoeyArmstrong - 28 Sep 2010
-- StevenLindsey - 14 May 2015
Topic revision: r29 - 14 May 2015, StevenLindsey
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback