SVN按文件名和文件内容显示最新的文件修订 [英] SVN display lastest file revision by filename and file contents

查看:36
本文介绍了SVN按文件名和文件内容显示最新的文件修订的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个 SVN 命令可以显示文件名的最新版本并显示其内容?类似于命令行的东西:SVN 日志配置文件 |猫配置文件

Is there an SVN command that can display the latest revison of a filename and also display its contents? Something like a command line: SVN Log config.file | Cat config.file

Windows 还是 Linux 命令?进行显示的人不会是检查代码的人.只读

Windows or Linux command? The person doing the display will not be the person checking out the code. Read only

推荐答案

没有一个命令可以同时做到这两点.检索修订历史信息(svn log)和版本化项目内容(svn catsvn cosvn export)是独立且不同的操作.

There is no single command which will do both. Retrieving revision history information (svn log) and versioned item contents (svn cat, svn co, svn export) are separate and distinct actions.

您可以使用 svn log --limit 1 个文件;svn cat 文件; 在 bash (Linux) 或 PowerShell (Windows) 中,但结果将是两个不相关命令的输出.

You could use svn log --limit 1 file; svn cat file; in either bash (Linux) or PowerShell (Windows), but the result would be the output of two unrelated commands.

这篇关于SVN按文件名和文件内容显示最新的文件修订的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆