how to view previous version of a file in Mercurial

前端 未结 3 1128
醉梦人生
醉梦人生 2021-01-31 08:04

I am using mercurial for version control of a few files in a directory. Suppose I have 10 commits (10 changesets or revisions). I want to just view how a particular file, say th

3条回答
  •  粉色の甜心
    2021-01-31 08:21

    To extract a specific revision of a specific file you can do this in Windows:

    hg cat "" -r 9 > ""
    

    Here, 9 is the revision number.

    Or even better:

    hg cat "" -r 9 -o ""
    

提交回复
热议问题