[PATCH RFC] subrepo: Add the '--thin' option to pull a thin strand of changes

Martin Geisler mg at aragost.com
Tue May 17 04:00:03 CDT 2011


Alistair Bell <alistair.bell at netronome.com> writes:

> # HG changeset patch
> # User Alistair Bell <alistair.bell at netronome.com>
> # Date 1305575046 14400
> # Node ID 4d759579fb076f37cdf99d84ff59ceffeaefcf2a
> # Parent  85c82ebc96a3611890b716f2ca5534cb92c6dbd5
> subrepo: Add the '--thin' option to pull a thin strand of changes.
>
> The idea of 'hg pull -r' or 'hg clone -r' is to pull a partial history
> of the repo. An example may be to pull only those changes that are
> asserted to be 'good' from a 'dirty' repo to a 'clean' repo. Use of
> '--thin' extends this functionality to subrepos. With 'hg update
> --thin' or 'hg pull -r <rev> -u --thin' only the good data is pulled
> from subrepos, and other history is left alone.

The concept of abandoned heads gives you a general way of marking
changesets as good and bad: mark the bad changesets as abandoned. The
changesets will then no longer be pulled or cloned.

  https://bitbucket.org/mg/abandoned-changesets/



More information about the Mercurial-devel mailing list