Mercurial > hg
comparison tests/test-extension.t @ 45008:e1ea913da2ed
version: sort extensions by name in verbose mode
External extensions can be assigned any name, but presumably most enabled
extensions will be internal ones and having them sorted makes it easier to find
specific ones if the list is long. The lists in `hg help extensions` are
already sorted.
Differential Revision: https://phab.mercurial-scm.org/D8671
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 27 Jun 2020 21:45:20 -0400 |
parents | a28d1eca6507 |
children | 3db545fccac1 |
comparison
equal
deleted
inserted
replaced
45007:47a07bbf400a | 45008:e1ea913da2ed |
---|---|
1557 This is free software; see the source for copying conditions. There is NO | 1557 This is free software; see the source for copying conditions. There is NO |
1558 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 1558 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
1559 | 1559 |
1560 Enabled extensions: | 1560 Enabled extensions: |
1561 | 1561 |
1562 strip internal | |
1562 throw external 1.twentythree | 1563 throw external 1.twentythree |
1563 strip internal | |
1564 | 1564 |
1565 $ hg version -q --config extensions.throw=throw.py | 1565 $ hg version -q --config extensions.throw=throw.py |
1566 Mercurial Distributed SCM (version *) (glob) | 1566 Mercurial Distributed SCM (version *) (glob) |
1567 | 1567 |
1568 Test template output: | 1568 Test template output: |
1598 | 1598 |
1599 Test template output of version: | 1599 Test template output of version: |
1600 | 1600 |
1601 $ hg version --config extensions.throw=throw.py --config extensions.strip= \ | 1601 $ hg version --config extensions.throw=throw.py --config extensions.strip= \ |
1602 > -T'{extensions % "{name} {pad(ver, 16)} ({if(bundled, "internal", "external")})\n"}' | 1602 > -T'{extensions % "{name} {pad(ver, 16)} ({if(bundled, "internal", "external")})\n"}' |
1603 strip (internal) | |
1603 throw 1.twentythree (external) | 1604 throw 1.twentythree (external) |
1604 strip (internal) | |
1605 | 1605 |
1606 Refuse to load extensions with minimum version requirements | 1606 Refuse to load extensions with minimum version requirements |
1607 | 1607 |
1608 $ cat > minversion1.py << EOF | 1608 $ cat > minversion1.py << EOF |
1609 > from mercurial import util | 1609 > from mercurial import util |