Mercurial log with one-liners

后端 未结 3 846
遇见更好的自我
遇见更好的自我 2021-02-01 03:14

The regular hg log command gives output with at least 4 lines per changeset. For example

changeset:   238:03a214f2a1cf
user:        My Name 

        
3条回答
  •  清酒与你
    2021-02-01 03:29

     hg log --style compact
    

    You can also use templates to display log out in different formats

    hg help templates
    

    In your case if you want to display only node ids do something like this

    hg log --template "{node}\n"
    

提交回复
热议问题