Difference between a changeset and a patch?

2019-07-23 20:03发布

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条回答
做个烂人
2楼-- · 2019-07-23 20:21

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).

查看更多
登录 后发表回答