Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial - log last month changes

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)?

like image 399
petros Avatar asked Apr 24 '15 07:04

petros


People also ask

What hg command saves changes to history?

A quick overview of the basic commands: hg init: create a new repository. hg commit: save your changes in the current repository.

What is hg update?

Use the command hg update to switch to an existing branch. Use hg commit --close-branch to mark this branch head as closed. When all heads of a branch are closed, the branch will be considered closed. Returns 0 on success.


1 Answers

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)

like image 51
planetmaker Avatar answered Oct 01 '22 15:10

planetmaker