SVN Checkout Single file (svn checkout, update individual files)

Source: Internet
Author: User
Tags svn svn client svn update tortoisesvn

 

SVN Checkout Single file (svn checkout , update individual files )

Contexts (context):

Technology is always updating. VSS,CVS,SVN, code management tools are also escalating, although it cannot be said that the next generation must be better than the previous generation (the "good" definition is difficult.) ), or more efficient, more suitable for work, but the product is always in development;

The original Vss,saw,sos (SourceOffSite, relatively good tools, unfortunately fees are very expensive), to the later open source CVS,SVN, are good tools;

Someone in the company started using SVN as a Code management tool; SVN, the upgraded version of CVS, has an advantage over CVS;

SVN site: http://subversion.tigris.org/

SNV Chinese Station: http://www.subversion.org.cn/

Windows use TORTOISESVN as the SVN client tool is the most common, of course, in Unix systems, can be managed by the command line, the command line is more powerful than desktop tools;

Problem (question):

SVN basic use is no problem. Can checkout,update,commit and so on, and so on is very good; the only thing missing is that if the server adds a new file, I just want to update a single file, and I get into trouble.

SVN Update method is for a directory update, so if you have hundreds of files in your directory, you have to update once, but it is a big toss back.

Solution (workaround):

Google's results found that SVN1.4 currently does not support checkout individual files, checkout a single file in the Svn1.5dev version, but not officially published, but there are two alternative options:

1. The use of SVN Cat command, of course, using the command line, can be done, cat single server files to the local, so that you do not need to update all the files, you can only update a specific file purposes;

2. Use the tortoisesvn revert option; This option is similar to SVN's cat command;

2.1 Select the check for modifications menu for TORTOISESVN:

After 2.2 Click, the following page appears.

Click "Check Repository" to list the server exists or locally modified files;

2.3 Right click on the file to be updated, the menu appears, the menu "Revert" can be selected to cover the file to the local;

Attention... : This method is to directly overwrite the server file to local; it belongs to checkout, not update; If the local file has been modified, the local change record will be lost;

2.4 End;

I wish you all to use SVN happy work;

Reference articles

SVN Chinese Station: http://www.subversion.org.cn/tsvndoc/

SVN official site: http://subversion.tigris.org/

TORTOISESVN Concise use: http://fairyfish.net/2007/09/08/tortoisesvn-introduce/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.