how to find out all the activities happend in a branch in the last month?

a 夏天 提交于 2019-11-26 12:32:49

问题


My problem is that The code in the branch I\'m working in for some reason is corrupted now , but I didn\'t make any label in the branch so It\'s hard to \"roll back\" the code to a valid status.

But I\'m sure a month ago the code is in the quite healthy status , so I\'d like to know all the activities happen in the branch in the last month then I can manully roll back each activity .

So As title, could any one of you tell me how to list all the activities happend in a branch in the last month ?

thanks in advance.


回答1:


Do not forget the time directive of selection rule.

element /myPath/... /main/{!created_since(16-Sep-2009)}
element /myPath/... /main/LATEST

Can enable you to see versions from a month ago (see time and query)

See also "time-based rule" answer.

From there you can branch and update your code from this older stable point.




回答2:


The "lshistory" command can be used to see the list of events that were performed (create version, create branch, etc).

ct lshistory -since 16-Sep-2009 -branch your_branch -recurse /path/to/vob

This would show all events that happened in /path/to/vob and all files and directories under that happened on your_branch since September 16th, 2009.

Adding "-short" will show the output as a list of elements and their version extended pathname, without the comments and other information.



来源:https://stackoverflow.com/questions/1577980/how-to-find-out-all-the-activities-happend-in-a-branch-in-the-last-month

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!