【发布时间】:2016-11-18 17:56:13
【问题描述】:
我想知道文件夹中每个文件的 TFS 历史记录有多长。我认为将每个文件的历史记录在一个文本文件中就足够了。命令
tf hist * /noprompt
在这样的平面列表中列出所有文件的所有变更集
Changeset User Date Comment
--------- ----------------- ---------- -------------------
45788 thu 16.11.2016 Bugfix 8172
45087 thu 11.10.2016 Refactor
44621 thu 15.09.2016 Refactor
... (a lot more lines)
44179 thu 22.08.2016 Bugfix 123
43537 thu 13.07.2016 Feature X finished
43383 thu 04.07.2016 Feature Y removed
42347 thu 17.05.2016 Refactor
但我正在寻找类似的东西
File: A.cpp
Changeset User Date Comment
--------- ----------------- ---------- -------------------
45788 thu 16.11.2016 Bugfix 8172
44179 thu 22.08.2016 Bugfix 123
43383 thu 04.07.2016 Feature Y removed
42347 thu 17.05.2016 Refactor
File: B.cpp
Changeset User Date Comment
--------- ----------------- ---------- -------------------
45788 thu 16.11.2016 Bugfix 8172
44621 thu 15.09.2016 Refactor
43537 thu 13.07.2016 Feature X finished
43383 thu 04.07.2016 Feature Y removed
... (a lot more tables)
有了这些信息(以及对 MS Excel 的一些善用),我可以计算出各种历史长度。
但是,如果有更好的方法可以直接从 TFS 获取长度,那也很好。
【问题讨论】:
标签: tfs