How does SVN view modified file records?

Source: Internet
Author: User

How does SVN view modified file records?

Svn log is used to display the author, date, and path of svn versions. svn diff is used to display detailed row-level information for specific modifications. svn cat, obtain a file of a specific version and display it on the current screen. svn list shows the file of a directory or version.

Svn diff commands are commonly used. It can compare different versions, svn versions and local version libraries, and check the role of local modifications.

Svn diff; # do not add anything, stick to the local code and slow down the information in the local. svn directory;

Svn diff-r 3; # compare the differences between your local code and all files whose version number is 3;

Svn diff-r 3 text. c; # compare the differences between your local code and the text. c file with version 3;

Svn diff-r; # compare the differences between versions 5 and 6;

Svn diff-r text. c; # Compare the changes in the text. c file between version 5 and version 6.

Run the following log command to view the modified information:

Svn log; # logs of all versions of commit are displayed if nothing is added;

Svn log-r; # view only the log information of Version 4 and version 5;

Svn log test. c; # view the log modification information of the test. c file;

Svn log-v dir; # Add v to view the log modification information of the directory;

View the content of a file in a certain version. Run the cat command as follows:

Svn cat-r 4 test. c; # check the content of file test. c In version 4 without comparison;

You do not need to download to the local machine to view various information about the file. Use the list command as follows:

Svn list http://svn.test.com/svn # view files in a directory;

Svn list-v http://svn.test.com/svn # view detailed directory information (revised by, version number, file size, etc );

-------------------------------------- Split line --------------------------------------

Subversion configuration instances in Linux

CentOS 6.2 SVN setup (YUM installation)

Deploy Apache + SVN in CentOS 6.5

Build an SVN server using Apache + SVN

Set up and use the SVN server in Windows + reset the password on the client

Install SVN in Ubuntu Server 12.04 and migrate Virtual SVN data

Build svn service and migration method on Ubuntu Server

Build SVN server with online storage

-------------------------------------- Split line --------------------------------------

This article permanently updates the link address:

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.