当前位置:网站首页>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 #查看详细的目录的信息(修订人,版本号,文件大小等);
边栏推荐
- One brush 148 force deduction hot question-5 longest palindrome substring (m)
- Interpretation of several important concepts of satellite antenna
- [JDBC] API parsing
- 线程池:业务代码最常用也最容易犯错的组件
- Depth first search of graph
- Preventing/catching “IllegalArgumentException: parameter must be a descendant of this view” error
- Thread pool executes scheduled tasks
- [combinatorics] non descending path problem (number of non descending paths with constraints)
- Overview of satellite navigation system
- One brush 142 monotone stack next larger element II (m)
猜你喜欢

MySQL converts comma separated attribute field data from column to row

MySQL Basics

Pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs

2022.02.14_ Daily question leetcode five hundred and forty

跨境电商:外贸企业做海外社媒营销的优势

29:第三章:开发通行证服务:12:开发【获得用户账户信息,接口】;(使用VO类包装查到的数据,以符合接口对返回数据的要求)(在多处都会用到的逻辑,在Controller中可以把其抽成一个共用方法)

Depth first search of graph

Arduino esp32: overall framework of lvgl project (I)

Mysql database -dql

Idea configuration plug-in
随机推荐
Idea configuration plug-in
Why is WPA3 security of enterprise business so important?
29:第三章:开发通行证服务:12:开发【获得用户账户信息,接口】;(使用VO类包装查到的数据,以符合接口对返回数据的要求)(在多处都会用到的逻辑,在Controller中可以把其抽成一个共用方法)
Bcvp developer community 2022 exclusive peripheral first bullet
【剑指 Offer】58 - I. 翻转单词顺序
The way of wisdom (unity of knowledge and action)
[combinatorics] recursive equation (the relationship theorem between the solution of the recursive equation and the characteristic root | the linear property theorem of the solution of the recursive e
What material is sa537cl2? Analysis of mechanical properties of American standard container plate
Arduino esp32: overall framework of lvgl project (I)
What is your income level in the country?
Kotlin学习快速入门(7)——扩展的妙用
Javescript variable declaration -- VaR, let, const
Visual studio "usually, each socket address (Protocol / network address / port) can only be used once“
NLP四范式:范式一:非神经网络时代的完全监督学习(特征工程);范式二:基于神经网络的完全监督学习(架构工程);范式三:预训练,精调范式(目标工程);范式四:预训练,提示,预测范式(Prompt工程)
JSON 与 BSON 区别
One brush 146 force buckle hot question-3 longest substring without repeated characters (m)
跨境电商:外贸企业做海外社媒营销的优势
Pools de Threads: les composants les plus courants et les plus sujets aux erreurs du Code d'affaires
Aike AI frontier promotion (7.3)
【剑指 Offer】58 - II. 左旋转字符串