当前位置:网站首页>SVN如何查看修改的文件记录
SVN如何查看修改的文件记录
2022-07-03 16:59:00 【星哥玩云】
主要是有四个命令,svn log用来展示svn 的版本作者、日期、路径等等;svn diff,用来显示特定修改的行级详细信息;svn cat,取得在特定版本的某文件显示在当前屏幕;svn list,显示一个目录或某一版本存在的文件。
比较常用的是svn diff命令。它可以比较不同版本之间、svn版本和本地版本库之间,以及检查本地修改的作用。
svn diff; #什么都不加,会坚持本地代码和缓存在本地.svn目录下的信息的不同;
svn diff -r 3; #比较你的本地代码和版本号为3的所有文件的不同;
svn diff -r 3 text.c; #比较你的本地代码和版本号为3的text.c文件的不同;
svn diff -r 5:6; #比较版本5和版本6之间所有文件的不同;
svn diff -r 5:6 text.c; #比较版本5和版本6之间的text.c文件的变化。
查看修改的信息使用 log 指令,如下:
svn log; #什么都不加会显示所有版本commit的日志信息;
svn log -r 4:5; #只看版本4和版本5的日志信息;
svn log test.c; #查看文件test.c的日志修改信息;
svn log -v dir; #查看目录的日志修改信息,需要加v;
查看某个版本的某个文件内容,使用cat指令,如下:
svn cat -r 4 test.c; #查看版本4中的文件test.c的内容,不进行比较;
不用下载到本地查看文件的各种信息,使用 list 指令,如下:
svn list http://svn.test.com/svn #查看目录中的文件;
svn list -v http://svn.test.com/svn #查看详细的目录的信息(修订人,版本号,文件大小等);
边栏推荐
- CC2530 common registers for serial communication
- RF Analyze Demo搭建 Step by Step
- 线程池:业务代码最常用也最容易犯错的组件
- Pools de Threads: les composants les plus courants et les plus sujets aux erreurs du Code d'affaires
- [combinatorial mathematics] recursive equation (example of recursive equation 2 Hanoi Tower | example of recursive equation 3 insertion sequencing)
- On Lagrange interpolation and its application
- PHP converts a one-dimensional array into a two-dimensional array
- PHP online confusion encryption tutorial sharing + basically no solution
- [Jianzhi offer] 58 - ii Rotate string left
- [2. Basics of Delphi grammar] 2 Object Pascal data type
猜你喜欢

Talk about several methods of interface optimization

The word backspace key cannot delete the selected text, so you can only press Delete

Web crawler knowledge day03
![[combinatorics] non descending path problem (number of non descending paths with constraints)](/img/89/bd1a2ddd9632ab5d4b4bee9336be51.jpg)
[combinatorics] non descending path problem (number of non descending paths with constraints)

Mysql database -dql

MySQL converts comma separated attribute field data from column to row

Thread pool executes scheduled tasks

(Supplement) double pointer topic

Kotlin learning quick start (7) -- wonderful use of expansion

What material is 12cr1movr? Chemical property analysis of pressure vessel steel plate 12cr1movr
随机推荐
To resist 7-Zip, list "three sins"? Netizen: "is the third key?"
[combinatorics] recursive equation (outline of recursive equation content | definition of recursive equation | example description of recursive equation | Fibonacci Series)
mysql用户管理
汇编实例解析--实模式下屏幕显示
線程池:業務代碼最常用也最容易犯錯的組件
What is the maximum number of concurrent TCP connections for a server? 65535?
[Jianzhi offer] 64 Find 1+2+... +n
[2. Basics of Delphi grammar] 1 Identifiers and reserved words
Acwing game 58
美团一面:为什么线程崩溃崩溃不会导致 JVM 崩溃
BYD and great wall hybrid market "get together" again
Hands on in-depth learning notes (XIV) 3.7 Simple implementation of softmax regression
浅谈拉格朗日插值及其应用
Bcvp developer community 2022 exclusive peripheral first bullet
What material is 12cr1movr? Chemical property analysis of pressure vessel steel plate 12cr1movr
Yu Wenwen, Hu Xia and other stars take you to play with the party. Pipi app ignites your summer
Prepare for the golden three silver four, 100+ software test interview questions (function / interface / Automation) interview questions. win victory the moment one raises one 's standard
2022.02.14_ Daily question leetcode five hundred and forty
One brush 147-force deduction hot question-4 find the median of two positive arrays (H)
Preventing/catching “IllegalArgumentException: parameter must be a descendant of this view” error