Mercurial > hg
comparison tests/test-obsolete-changeset-exchange.t @ 17296:a1f8869f2eee stable
obsolete: introduce an `_enabled` switch to disable the feature by default
Obsolete markers wide-usage and propagation should be avoided by default until
the obsolete feature is more mature.
This changeset introduce the `_enable` variable and prevent the creation of
obsolete marker if the feature is set to `False` (the default).
More limitation comes in followup changesets.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Sat, 28 Jul 2012 13:19:06 +0200 |
parents | 6ffb35b2284c |
children | 7f5094bb3f42 |
comparison
equal
deleted
inserted
replaced
17295:1f08ecc7febb | 17296:a1f8869f2eee |
---|---|
1 Test changesets filtering during exchanges (some tests are still in | 1 Test changesets filtering during exchanges (some tests are still in |
2 test-obsolete.t) | 2 test-obsolete.t) |
3 | |
4 $ cat > obs.py << EOF | |
5 > import mercurial.obsolete | |
6 > mercurial.obsolete._enabled = True | |
7 > EOF | |
8 $ echo '[extensions]' >> $HGRCPATH | |
9 $ echo "obs=${TESTTMP}/obs.py" >> $HGRCPATH | |
3 | 10 |
4 Push does corrupt remote | 11 Push does corrupt remote |
5 ------------------------ | 12 ------------------------ |
6 | 13 |
7 Create a DAG where a changeset reuses a revision from a file first used in an | 14 Create a DAG where a changeset reuses a revision from a file first used in an |