Mercurial - How do I create a .zip of files changed between two revisions?

前端 未结 9 2140
迷失自我
迷失自我 2021-02-04 16:29

I have a personal Mercurial repository tracking some changes I am working on. I\'d like to share these changes with a collaborator, however they don\'t have/can\'t get Mercuria

9条回答
  •  盖世英雄少女心
    2021-02-04 17:01

    I ran into this problem recently. My solution:

    hg update null
    hg debugsetparents (starting revision)
    hg update (ending revision)
    

    This will have the effect of deleting all tracked files that were not changed between those two revisions. You will have to remove any untracked files yourself, though. After doing this, the local branch will be in an inconsistent state; you can fix this by running hg debugrebuildstate (or simply deleting the local branch, if you no longer need it).

提交回复
热议问题