Mercurial - log last month changes

廉价感情. 提交于 2019-12-07 11:36:22

问题


I'm using TortoiseHG with mercurial and I have to log my changes from last month. It has to be something like this in GIT:

git log --since="2015-03-01" -p --author='me' > C:\history_3.log

Can you tell me how can I do it (using tortoise gui or terminal)?


回答1:


You want to make use of mercurial's revsets, a very powerful language to filter the revisions listed:

hg log -r"author('YOURNAME') and date('>2015-03-01')"

or alternatively for the last 30 days:

hg log -r"author('YOURNAME') and date('-30')".

See hg help revsets and hg help dates.

EDIT: Using tortoiseHG, you can use the magnifying glass icon in the toolbar (thanks Kevin)



来源:https://stackoverflow.com/questions/29841425/mercurial-log-last-month-changes

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