Subversion 中特定代码行的更改历史 [英] History of changes to a particular line of code in Subversion

查看:35
本文介绍了Subversion 中特定代码行的更改历史的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以查看 Subversion 存储库中特定代码行的更改历史记录?

Is it possible to see the history of changes to a particular line of code in a Subversion repository?

例如,我希望能够查看特定语句的添加时间或该语句的更改时间,即使其行号不再相同.

I'd like, for instance, to be able to see when a particular statement was added or when that statement was changed, even if its line number is not the same any more.

推荐答案

我不知道在 Subversion 中通过时间跟踪语句的方法.

I don't know a method for tracking statements through time in Subversion.

然而,使用 svn blame 查看文件中的任何特定行最后一次更改的时间很简单.检查SVNBook:svnblame参考:

It is simple however to see when any particular line in a file was last changed using svn blame. Check the SVNBook: svn blame reference:

概要

svn blame TARGET[@REV]...

说明

内嵌显示指定文件或 URL 的作者和修订信息.每行文本的开头都标注了作者(用户名)和该行最后一次更改的修订号.

Show author and revision information in-line for the specified files or URLs. Each line of text is annotated at the beginning with the author (username) and the revision number for the last change to that line.

这篇关于Subversion 中特定代码行的更改历史的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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