Mercurial > hg
comparison tests/test-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 | bb8278b289ee |
children | dc25ed84bee8 |
comparison
equal
deleted
inserted
replaced
22954:32f15b361f36 | 22955:fab9dda0f2a3 |
---|---|
35 abort: creating obsolete markers is not enabled on this repo | 35 abort: creating obsolete markers is not enabled on this repo |
36 [255] | 36 [255] |
37 | 37 |
38 Enabling it | 38 Enabling it |
39 | 39 |
40 $ cat > ../obs.py << EOF | 40 $ cat >> $HGRCPATH << EOF |
41 > import mercurial.obsolete | 41 > [experimental] |
42 > mercurial.obsolete._enabled = True | 42 > evolution=createmarkers,exchange |
43 > EOF | 43 > EOF |
44 $ echo '[extensions]' >> $HGRCPATH | |
45 $ echo "obs=${TESTTMP}/obs.py" >> $HGRCPATH | |
46 | 44 |
47 Killing a single changeset without replacement | 45 Killing a single changeset without replacement |
48 | 46 |
49 $ hg debugobsolete 0 | 47 $ hg debugobsolete 0 |
50 abort: changeset references must be full hexadecimal node identifiers | 48 abort: changeset references must be full hexadecimal node identifiers |
642 200 Script output follows | 640 200 Script output follows |
643 $ "$TESTDIR/killdaemons.py" hg.pid | 641 $ "$TESTDIR/killdaemons.py" hg.pid |
644 | 642 |
645 Checking _enable=False warning if obsolete marker exists | 643 Checking _enable=False warning if obsolete marker exists |
646 | 644 |
647 $ echo '[extensions]' >> $HGRCPATH | 645 $ echo '[experimental]' >> $HGRCPATH |
648 $ echo "obs=!" >> $HGRCPATH | 646 $ echo "evolution=" >> $HGRCPATH |
649 $ hg log -r tip | 647 $ hg log -r tip |
650 obsolete feature not enabled but 68 markers found! | 648 obsolete feature not enabled but 68 markers found! |
651 68:c15e9edfca13 (draft) [tip ] add celestine | 649 68:c15e9edfca13 (draft) [tip ] add celestine |
652 | 650 |
653 reenable for later test | 651 reenable for later test |
654 | 652 |
655 $ echo '[extensions]' >> $HGRCPATH | 653 $ echo '[experimental]' >> $HGRCPATH |
656 $ echo "obs=${TESTTMP}/obs.py" >> $HGRCPATH | 654 $ echo "evolution=createmarkers,exchange" >> $HGRCPATH |
657 | 655 |
658 #endif | 656 #endif |
659 | 657 |
660 Test incoming/outcoming with changesets obsoleted remotely, known locally | 658 Test incoming/outcoming with changesets obsoleted remotely, known locally |
661 =============================================================================== | 659 =============================================================================== |