Mercurial-记录上个月的更改 [英] Mercurial - log last month changes

查看:68
本文介绍了Mercurial-记录上个月的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将TortoiseHG与Mercury一起使用,我必须记录上个月以来的更改.在GIT中必须是这样的:

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

您能告诉我该怎么做(使用乌龟gui或终端)吗?

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

推荐答案

您要使用Mercurial的修订集,这是一种非常强大的语言,可以过滤列出的修订:

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')"

或最近30天:

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

请参见hg help revsetshg help dates.

使用tortoiseHG,您可以使用工具栏中的放大镜图标(感谢Kevin)

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

这篇关于Mercurial-记录上个月的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆