Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Mercurial, How to check the revision log of a specific folder?

So here is an example folder hierarchy:

c:\MyProject
c:\MyProject\Folder1
c:\Myproject\Folder2

In SVN, If I am only interested in looking at the history of changes in c:\MyProject\Folder1 I could just navigate to that folder, right click and view log.

With Mercurial doing the same thing shows all the changes in the entire MyProject. Is there a way to filter out and show me only changes in Folder1 (And its sub-folders) ?

like image 526
7wp Avatar asked Nov 19 '10 22:11

7wp


People also ask

What does hg commit do?

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.

What is Mercurial changeset?

A changeset (sometimes abbreviated "cset") is an atomic collection of changes to files in a repository. It contains all recorded local modification that lead to a new revision of the repository. A changeset is identified uniquely by a changeset ID. In a single repository, you can identify it using a revision number.

What is hg status?

hg status shows the status of a repository. Files are stored in a project's working directory (which users see), and the local repository (where committed snapshots are permanently recorded). hg add tells Mercurial to track files. hg commit creates a snapshot of the changes to 1 or more files in the local repository.


1 Answers

It pretty much works as you would expect, same as for svn log:

hg log c:\MyProject\Folder1
like image 141
Wim Coenen Avatar answered Nov 01 '22 09:11

Wim Coenen