Show More
@@ -6,18 +6,18 b' from mercurial import (' | |||
|
6 | 6 | ui as uimod, |
|
7 | 7 | ) |
|
8 | 8 | |
|
9 | ignore = {'highlight', 'win32text', 'factotum'} | |
|
9 | ignore = {b'highlight', b'win32text', b'factotum'} | |
|
10 | 10 | |
|
11 | 11 | if os.name != 'nt': |
|
12 | ignore.add('win32mbcs') | |
|
12 | ignore.add(b'win32mbcs') | |
|
13 | 13 | |
|
14 | 14 | disabled = [ext for ext in extensions.disabled().keys() if ext not in ignore] |
|
15 | 15 | |
|
16 | hgrc = open(os.environ["HGRCPATH"], 'w') | |
|
17 | hgrc.write('[extensions]\n') | |
|
16 | hgrc = open(os.environ["HGRCPATH"], 'wb') | |
|
17 | hgrc.write(b'[extensions]\n') | |
|
18 | 18 | |
|
19 | 19 | for ext in disabled: |
|
20 | hgrc.write(ext + '=\n') | |
|
20 | hgrc.write(ext + b'=\n') | |
|
21 | 21 | |
|
22 | 22 | hgrc.close() |
|
23 | 23 | |
@@ -30,7 +30,7 b' for option in commands.globalopts:' | |||
|
30 | 30 | option[0] and globalshort.add(option[0]) |
|
31 | 31 | option[1] and globallong.add(option[1]) |
|
32 | 32 | |
|
33 |
for cmd, entry in commands.table. |
|
|
33 | for cmd, entry in commands.table.items(): | |
|
34 | 34 | seenshort = globalshort.copy() |
|
35 | 35 | seenlong = globallong.copy() |
|
36 | 36 | for option in entry[1]: |
General Comments 0
You need to be logged in to leave comments.
Login now