tencent cloud

Feedback

Access SVN Repository

Last updated: 2022-03-30 11:02:28

    The SVN repository service currently supports most mainstream SVN clients. We recommend you use the latest stable version of the client.

    Open Project

    1. Log in to the CODING Console and click the team domain name to go to CODING.
    2. Click in the upper-right corner to open the project list page and click a project icon to open the corresponding project.
    3. In the menu on the left, select Code Repositories.
    4. If Code Repositories is not shown on the left, the project admin needs to go to Project Settings > Projects and Members > Functions to enable the relevant function.

    Mac Environment

    In a Mac environment, you can use Homebrew to install the SVN client.

    1. Run the following command to install Homebrew:
      /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    2. After you install Homebrew, input the following command in your terminal to install SVN:
      brew install subversion
    3. Run the svn --version command to verify that SVN has been correctly installed:
      svn, version 1.9.7 (r1800392)
      compiled Feb 28 2018, 15:54:50 on x86_64-apple-darwin17.3.0
      Copyright (C) 2017 The Apache Software Foundation.
      This software consists of contributions made by many people;
      see the NOTICE file for more information.
      Subversion is open source software, see http://subversion.apache.org/
      The following repository access (RA) modules are available:

      * ra_svn : Module for accessing a repository using the svn network protocol.
      - with Cyrus SASL authentication
      - handles 'svn' scheme
      * ra_local : Module for accessing a repository on local disk.
      - handles 'file' scheme
      * ra_serf : Module for accessing a repository via WebDAV protocol using serf.
      - using serf 1.3.9 (compiled with 1.3.9)
      - handles 'http' scheme
      - handles 'https' scheme
      The following authentication credential caches are available:
      * Plaintext cache in /Users/Liwenqiu/.subversion
      * Mac OS X Keychain
    4. Run the command svn checkout svn://subversion.e.coding.net/example/example-project (replacing the URL with your SVN repository URL) to check out the SVN repository:
    5. Then, you can use the add and commit commands to add content to the repository:
    6. In addition to using SVN protocol, you can use svn+ssh protocol to access the repository, as shown below:

    Cornerstone Tool

    You can use SVN repositories through Cornerstone.

    1. Open Cornerstone and click Add Repository to add an SVN repository reference (replacing the URL with your SVN repository URL):

      Then, you can view the repository content.
    2. Use Check Out to check out the repository, edit the files, and use Commit to commit the changes, as shown below:

    Windows Environment

    In Windows, we recommend you use TortoiseSVN.

    1. After downloading and installing the tool, right-click on any file directory.

      Select Checkout to check out the SVN repository (replace the URL with your SVN repository URL).
    2. The first time you use Checkout, you must enter your username and password. Select Save authentication to save the authentication information so you will not have to enter your password next time.
    3. Open the checked-out folder and create a README.md file.

      Right-click on a blank space and select SVN commit... to save the new file to the version repository:

    Linux Environment

    On a Linux system, you can use the system's package management tool to install SVN.

    Install with yum in Fedora

    $ sudo yum install subversion

    Install with apt-get in Ubuntu or Debian

    $ sudo apt-get install subversion

    After installation, use svn checkout / commit to access the SVN repository.

    Note:

    This method is similar to the command line used in Mac systems.

    "Negotiate authentication mechanism" error when using the SVN command line in Ubuntu

    You may see the following error when using the SVN command-line client in Ubuntu:

    svn: E210007: Cannot negotiate authentication mechanism
    This occurs because the SVN authentication process uses the SASL library, so you need to run the following command to install the dependent library required to use SASL authentication:
    $ sudo apt-get install cyrus-sasl2-dbg
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support