Difference between a changeset and a patch?

半世苍凉 提交于 2020-01-05 02:29:07

问题


What is the difference a changeset and a patch?

I was using hg today and I noticed the import command mentions that it is used to "import an ordered set of patches."

What is a patch?


回答1:


Changeset typically refers to the internal representation. Thus, hg unbundle, which processes mercurial-specific files, "applies one or more changegroup files." A changegroup is simply a group of changesets.

Patches are plain text in standard formats (e.g. produced by diff). Note that the patch command can be used to process these plaintext files (independent of revision control).



来源:https://stackoverflow.com/questions/3048899/difference-between-a-changeset-and-a-patch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!