Print Current Mercurial Revision Hash?

后端 未结 8 1940
无人共我
无人共我 2020-12-12 20:04

Is there a better way extract the current revision hash in Mercurial than

hg log -l1|grep changeset|cut -d: -f3

?

Part of my webapp depl

8条回答
  •  醉话见心
    2020-12-12 20:37

    You can use --template with the parent command, I use this to get the long hash:

    hg parent --template '{node}'
    

提交回复
热议问题