Mercurial > hg
comparison tests/test-rebase-obsolete.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 | 2229d757802d |
children | bd5dbb8a05c8 |
comparison
equal
deleted
inserted
replaced
22954:32f15b361f36 | 22955:fab9dda0f2a3 |
---|---|
2 Test rebase with obsolete | 2 Test rebase with obsolete |
3 ========================== | 3 ========================== |
4 | 4 |
5 Enable obsolete | 5 Enable obsolete |
6 | 6 |
7 $ cat > ${TESTTMP}/obs.py << EOF | |
8 > import mercurial.obsolete | |
9 > mercurial.obsolete._enabled = True | |
10 > EOF | |
11 $ cat >> $HGRCPATH << EOF | 7 $ cat >> $HGRCPATH << EOF |
12 > [ui] | 8 > [ui] |
13 > logtemplate= {rev}:{node|short} {desc|firstline} | 9 > logtemplate= {rev}:{node|short} {desc|firstline} |
10 > [experimental] | |
11 > evolution=createmarkers,allowunstable | |
14 > [phases] | 12 > [phases] |
15 > publish=False | 13 > publish=False |
16 > [extensions]' | 14 > [extensions]' |
17 > rebase= | 15 > rebase= |
18 > | |
19 > obs=${TESTTMP}/obs.py | |
20 > EOF | 16 > EOF |
21 | 17 |
22 Setup rebase canonical repo | 18 Setup rebase canonical repo |
23 | 19 |
24 $ hg init base | 20 $ hg init base |