Note:

This page is primarily intended for developers of Mercurial.

Dirstate

Internals of the directory state cache.

Contents

  1. Introduction

1. Introduction

Mercurial tracks various information about the working directory (the dirstate):

For each file that Mercurial controls, we record the following information:

The states that are tracked are:

With this information, we can quickly determine what files in the working directory have changed.

Here's a real example of a dirstate of a clone of the Mercurial repository itself: