Finding the author of a line of code in Mercurial

前端 未结 6 1676
时光说笑
时光说笑 2021-01-30 03:10

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 lin

6条回答
  •  你的背包
    2021-01-30 03:38

    on the command line , you can use either hg blame or hg annotate.

    $ hg blame -u -c -l Filename
    
    -u --user                list the author (long with -v)
    -c --changeset           list the changeset
    -l --line-number         show line number at the first appearance
    

提交回复
热议问题