equal
deleted
inserted
replaced
25 > repo.__class__ = debugkeysrepo |
25 > repo.__class__ = debugkeysrepo |
26 > EOF |
26 > EOF |
27 |
27 |
28 $ hg init tmpa |
28 $ hg init tmpa |
29 $ cd tmpa |
29 $ cd tmpa |
|
30 $ mkcommit kill_me |
|
31 |
|
32 Checking that the feature is properly disabled |
|
33 |
|
34 $ hg debugobsolete -d '0 0' `getid kill_me` -u babar |
|
35 abort: obsolete feature is not enabled on this repo |
|
36 [255] |
|
37 |
|
38 Enabling it |
|
39 |
|
40 $ cat > ../obs.py << EOF |
|
41 > import mercurial.obsolete |
|
42 > mercurial.obsolete._enabled = True |
|
43 > EOF |
|
44 $ echo '[extensions]' >> $HGRCPATH |
|
45 $ echo "obs=${TESTTMP}/obs.py" >> $HGRCPATH |
30 |
46 |
31 Killing a single changeset without replacement |
47 Killing a single changeset without replacement |
32 |
48 |
33 $ mkcommit kill_me |
|
34 $ hg debugobsolete 0 |
49 $ hg debugobsolete 0 |
35 abort: changeset references must be full hexadecimal node identifiers |
50 abort: changeset references must be full hexadecimal node identifiers |
36 [255] |
51 [255] |
37 $ hg debugobsolete '00' |
52 $ hg debugobsolete '00' |
38 abort: changeset references must be full hexadecimal node identifiers |
53 abort: changeset references must be full hexadecimal node identifiers |