简体   繁体   中英

how to quickly tell which files differ in mercurial revisions

This seems like it should be obvious but I can't figure it out.

Suppose I have mercurial revisions 4 and 7 and I want to see which files changed between those revisions. I can do a hg diff -r 4 -r 7 to list the entire set of diffs... is there a way to just list the files that have changed?

hg status --rev 4:7

You can use "hg log" for this.

hg log --verbose --rev=4:7 --style=changelog

Example:

$ hg log -v -r4:7 --style=changelog
2008-08-03 21:40 +0200  XXXXX  <XXXXXX.YYYY@xxxxxxxx.com>  (475752c35880)

        * osinfo.py: new file.
        * os-info.py: deleted file.
        * os-info.py, osinfo.py:
        Rename os-info.py -> osinfo.py.

2008-08-03 21:52 +0200  XXXXXX  <XXXXXX.YYYY@xxxxxxxx.com>  (babf6df75ff4)

        * iterate_file_lines.py, osinfo.py:
        Add keyword substitution strings.

2008-08-03 21:53 +0200  XXXXXX  <XXXXXX.YYYY@xxxxxxxx.com>  (bc6fc22adb8e)

        * iterate_file_lines.py:
        Remove comment about coding conventions.

2008-08-08 19:43 +0200  XXXXXX  <XXXXXX.YYYY@xxxxxxxx.com>  (dbea6914b20f)

        * .hgignore: new file.
        * .hgignore:
        Add .hgignore.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM