[SVN (Ubuntu)] SVN View history Details

Source: Internet
Author: User
Tags diff

Reprint: http://lee2013.iteye.com/blog/1074457

The following content is useful for viewing code changes in the Ubuntu command line.

SVN view historical Information The SVN command allows you to remove past versions, or specific changes made by a version, based on time or revision numbers. The following four commands can be used to view the history of SVN: SVN log is used to show SVN's version author, date, path, and so on. SVN diff is used to display specific modified row-level details SVN cat gets a file in a specific version displayed in the current screen SVN list display a directory or a version The existence

SVN view historical Information The SVN command allows you to remove past versions, or specific changes made by a version, based on time or revision numbers. The following four commands can be used to view the history of SVN:
SVN log is used to show SVN's version author, date, path, etc.
SVN diff to display row-level details for a specific modification
SVN cat gets a file in a specific version displayed on the current screen
SVN list displays a directory or a version of a file that exists

(a) SVN log can display all the information, if you want to see only a specific two versions between the information, you can use:

SVN log-r R1:R2

If you want to view only the version modification information for a file, you can use the

SVN log A

If you want to get directory information, add-V
If you want to display directory information that qualifies n records, use the

SVN log--limit N-v

(ii) SVN diff to check the details of historical changes
。 Check for local modifications
。 Compare working copy to Repository
。 Compare repository to Repository
(1) If you use SVN diff without any parameters, it will compare your working file with the "original" copy cached in. svn.

svn diffIndex:rules.txt===================================================================---rules.txt (Revision 3)++ +-1,4 +1,5 = responsibilityeverything in moderation-chew with your Mouth open

(2) Compare working copy and repository

SVN diff-r 3 rule.txt is to compare your working copy with the version number 3 file in the repository Rule.txt

(3) Comparing the repository with the version library
Two version numbers separated by colons are passed through-r (revision), and these two versions are compared

SVN diff-r r1:r2 rule.txt is used to compare the version number R1 and R2 in the SVN working version of this file change

(iii) SVN cat
If you just want to check a past version and don't want to see their differences, you can use the SVN cat

SVN cat-r version number Rule,txt

This command displays the contents of the file under this version number

(iv) SVN list
SVN list can view the files in the directory without downloading the files to the local directory:

$ svn list http:///svn.collab.net/repos/svnreadmebranches/clients/tags / Basic use of thetrunk/

If you want to see more information, you can use the--verbose (-V) Parameter:

$ svn list-v http://svn.collab.net/repos/svn20620 Harry 1084 Jul 2006 README23339 Harry Feb 01:40 branches/21282 Sally 09:41 developer-resources/23198 Harry Jan 17:17 tags/23351 Sally Feb 13:26 tru nk/

These columns tell you the last modified version of the file and directory, the user who made the changes, and if the file has a file
Size, and finally the modification date and the item's name.

[SVN (Ubuntu)] SVN View history Details

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.