Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial - get a list of files that were changed in the most recent changeset

I know that hg export tip contains the above information. But the output contains more information than I need. Is there a way to get only the file names without parsing the output of hg export tip? Maybe some other mercurial command?

like image 346
Can't Tell Avatar asked Dec 08 '22 20:12

Can't Tell


1 Answers

You want status, use it like this:

hg stat --change tip

That will list the file name of each file changed in the changeset tagged tip with a preceding M for modified, R for removed, or A for added.

You can replace tip with a tag or a revision number.

See more at hg help status

like image 135
Edward Avatar answered May 21 '23 19:05

Edward