Mercurial > hg
comparison tests/test-check-commit-hg.t @ 22955:fab9dda0f2a3
obsolete: update tests to use obsolete options
The obsolete._enabled flag has become a config option. This updates all but one
of the tests to use the minimal number of flags necessary for them to pass. For
most tests this is just 'createmarkers', for a couple tests it's
'allowunstable', and for even fewer it's 'exchange'.
author | Durham Goode <durham@fb.com> |
---|---|
date | Tue, 14 Oct 2014 13:34:25 -0700 |
parents | 14306a686e71 |
children | 80a37f706011 |
comparison
equal
deleted
inserted
replaced
22954:32f15b361f36 | 22955:fab9dda0f2a3 |
---|---|
1 #require test-repo | 1 #require test-repo |
2 | 2 |
3 Enable obsolescence to avoid the warning issue when obsmarker are found | 3 Enable obsolescence to avoid the warning issue when obsmarker are found |
4 | 4 |
5 $ cat > obs.py << EOF | 5 $ cat >> $HGRCPATH << EOF |
6 > import mercurial.obsolete | 6 > [experimental] |
7 > mercurial.obsolete._enabled = True | 7 > evolution=createmarkers |
8 > EOF | 8 > EOF |
9 $ echo '[extensions]' >> $HGRCPATH | |
10 $ echo "obs=${TESTTMP}/obs.py" >> $HGRCPATH | |
11 | 9 |
12 Go back in the hg repo | 10 Go back in the hg repo |
13 | 11 |
14 $ cd $TESTDIR/.. | 12 $ cd $TESTDIR/.. |
15 | 13 |