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

前端 未结 9 2143
迷失自我
迷失自我 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:10

    Well. hg export $base:tip > patch.diff will produce a standard patch file, readable by most tools around.

    In particular, the GNU patch command can apply the whole patch against the previous files. Isn't it enough? I dont see why you would need the set of files: to me, applying a patch seems easier than extracting files from a zip and copying them to the right place. Plus, if your collaborator has local changes, you will overwrite them. You're not using a Version Control tool to bluntly force the other person to merge manually the changes, right? Let patch deal with that, honestly :)

提交回复
热议问题