在Mercurial中查找代码行的作者 [英] Finding the author of a line of code in Mercurial

查看:33
本文介绍了在Mercurial中查找代码行的作者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何找出谁负责特定的代码行?我知道行号和文件名,但我希望Mercurial告诉我该特定代码行的作者.有命令吗?

How do I find out who is responsible for a specific line of code? I know the linenumber and the filename but I would like Mercurial to tell me the author(s) of that specific line of code. Is there a command for that?

推荐答案

在命令行上,您想使用hg annotate -u(-u可以与-n结合使用以获取本地版本号,这可能会很有用).检查hg help anno了解更多选项.

On the command-line, you'd want to use hg annotate -u (-u can be combined with -n to get the local revision number, which might come in useful). Check hg help anno for more options.

这篇关于在Mercurial中查找代码行的作者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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