变更集和修订之间的 Mercurial 差异

Mercurial difference between changesets and revisions

我是 Mercurial 的新手,正在尝试了解其工作原理。

我想知道变更集和修订之间有什么区别?

谢谢。

None.

来自 Understanding Mercurial 页面:

When you commit, the state of the working directory relative to its parents is recorded as a new changeset (also called a new "revision")...

further down页面:

Mercurial groups related changes to multiple files into single atomic changesets, which are revisions of the whole project.

(强调我的)

即使老了,也可能有人会无意中发现这一点,我会说这是一个关键的区别。正如@Edward 指出的那样,它们是相关的。尽管如此,基于 Mercurial's FAQ 它们还是不一样的。

A revision number is a simple decimal number that corresponds with the ordering of commits in the local repository.

重要的部分是 本地存储库 并且进一步:

It is important to understand that this ordering can change from machine to machine due to Mercurial's distributed, decentralized architecture. This is where changeset IDs come in. A changeset ID is a 160-bit identifier that uniquely describes a changeset and its position in the change history, regardless of which machine it's on.

You should always use some form of changeset ID rather than the local revision number when discussing revisions with other Mercurial users as they may have different revision numbering on their system.

根据我的经验,修订号有时会有所不同并且不是唯一的。