找出用户的电子邮件?

问题描述 投票:3回答:1

是否可以找到某个用户的电子邮件。

我试过了:

hg log --user sherman

但这只告诉我谢尔曼做的所有变化,并没有告诉我他的电子邮件。

mercurial
1个回答
1
投票

用户在提交时可能根本没有提供电子邮件,但如果他们有这个可能会有所帮助,尽管它不会为单个用户提供结果。

hg churn -c --template "{author|person} - {author|email}"

应该为您提供格式中所有作者的列表

username - email_address

它还会为您提供他们所做的提交次数。


在没有流失扩展的情况下,为你提供类似输出(在Powershell中)的另一个选项是:

hg log --template "{author|person} - {author|email}\n" | Sort-Object -Unique

我相信Linux等价物是这样的:

hg log --template "{author|person} - {author|email}\n" | sort | uniq

© www.soinside.com 2019 - 2024. All rights reserved.