Search code examples
mercurialcommand-line-argumentstortoisehg

Mercurial - hg command line to list all files from a specific rev


I'm a new mercurial user, and i 've got a specific needs on my project.

I would like to know if there's an easy way to list every files from a project rev and for each file, get the reversion version.

For example :

rev 100
-toto.c rev 3
-toto.h rev 50
-tata.c rev 100

Thanks in advance if someone got an idea :)


Solution

  • A file in Hg doesn't have a specific revision number associated with it ("the most recent revision in which this file was changed") A single file can have multiple "most recent versions" in different branches.

    This command lists all files in a certain revision:

    hg Manifest

    hg manifest [-r REV]

    output the current or given revision of the project manifest