This attempts to describe the project's architecture in terms of modules. In general, no layer should know the details of any layer above it, and no layer should abuse the interface of layers below it. See ["Design"] for a overview of how things work.

Interface layer

This is the topmost layer and is the part most directly exposed to the user.

Repository layer

This layer contains all the objects that implement the core primitives of the SCM:

It also contains the proxy objects for remote repositories:

Finally, it contains the objects from which the repository is constructed:

Storage layer

This contains the basis for version storage, revlog, which provides these facilities:

Utility layer

This includes generic functionality and platform abstraction