Show More
@@ -1105,8 +1105,8 b' class Test(unittest.TestCase):' | |||||
1105 | hgrc.write(b'ipv6 = %s\n' % str(self._useipv6).encode('ascii')) |
|
1105 | hgrc.write(b'ipv6 = %s\n' % str(self._useipv6).encode('ascii')) | |
1106 |
|
1106 | |||
1107 | for opt in self._extraconfigopts: |
|
1107 | for opt in self._extraconfigopts: | |
1108 | section, key = opt.split('.', 1) |
|
1108 | section, key = opt.encode('utf-8').split(b'.', 1) | |
1109 | assert '=' in key, ('extra config opt %s must ' |
|
1109 | assert b'=' in key, ('extra config opt %s must ' | |
1110 | 'have an = for assignment' % opt) |
|
1110 | 'have an = for assignment' % opt) | |
1111 | hgrc.write(b'[%s]\n%s\n' % (section, key)) |
|
1111 | hgrc.write(b'[%s]\n%s\n' % (section, key)) | |
1112 | hgrc.close() |
|
1112 | hgrc.close() |
@@ -1566,3 +1566,14 b' Test automatic pattern replacement' | |||||
1566 | # Ran 1 tests, 0 skipped, 1 failed. |
|
1566 | # Ran 1 tests, 0 skipped, 1 failed. | |
1567 | python hash seed: * (glob) |
|
1567 | python hash seed: * (glob) | |
1568 | [1] |
|
1568 | [1] | |
|
1569 | ||||
|
1570 | --extra-config-opt works | |||
|
1571 | ||||
|
1572 | $ cat << EOF >> test-config-opt.t | |||
|
1573 | > $ hg init test-config-opt | |||
|
1574 | > $ hg -R test-config-opt purge | |||
|
1575 | > EOF | |||
|
1576 | ||||
|
1577 | $ rt --extra-config-opt extensions.purge= test-config-opt.t | |||
|
1578 | . | |||
|
1579 | # Ran 1 tests, 0 skipped, 0 failed. |
General Comments 0
You need to be logged in to leave comments.
Login now