查找存储库LOC已添加到特定提交中

时间:2011-03-19 09:45:00

标签: mercurial loc

是否可以在特定提交中找到存储库的总代码行?

2 个答案:

答案 0 :(得分:4)

流失扩展可以满足我的需求:

hg churn --rev 100

答案 1 :(得分:2)

在较新版本的Mercurial中,另请参阅--stathg log的标记。这给你“diffstat”输出:

% hg log -l 3 --stat
changeset:   304:eb7e19e5021c
tag:         tip
user:        Martin Geisler 
date:        Wed Mar 30 12:26:41 2011 +0200
summary:     po-da: translated about

 po/da.po |  26 ++++++++++++++++++++++----
 1 files changed, 22 insertions(+), 4 deletions(-)

changeset:   303:0104b63e904b
user:        Martin Geisler 
date:        Wed Mar 30 00:03:47 2011 +0200
summary:     po-cs: remove unknown (illegal) escape sequence

 po/cs.po |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

changeset:   302:3b23518c9723
user:        Martin Geisler 
date:        Wed Mar 30 00:03:23 2011 +0200
summary:     po-cs: remove extra newline

 po/cs.po |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)