如何使用 hg log --template 获取 "dirty plus"?
How to get the "dirty plus" with hg log --template?
hg log -l1 -r . --template {node}
将为您提供当前工作目录的完整变更集散列,但我如何在末尾获得 +
来表明您的副本是脏的(未提交的更改),就像 hg id
一样?
使用hg id -i
;如果你想要完整的哈希值,请添加 --debug
。 (hg log
不检查工作树,因此不知道它是否脏。)
hg log -l1 -r . --template {node}
将为您提供当前工作目录的完整变更集散列,但我如何在末尾获得 +
来表明您的副本是脏的(未提交的更改),就像 hg id
一样?
使用hg id -i
;如果你想要完整的哈希值,请添加 --debug
。 (hg log
不检查工作树,因此不知道它是否脏。)