Show More
@@ -18,12 +18,15 b' from .. import (' | |||
|
18 | 18 | |
|
19 | 19 | from ..utils import procutil |
|
20 | 20 | |
|
21 | # pytype: disable=pyi-error | |
|
21 | 22 | from . import ( |
|
22 | 23 | hgweb_mod, |
|
23 | 24 | hgwebdir_mod, |
|
24 | 25 | server, |
|
25 | 26 | ) |
|
26 | 27 | |
|
28 | # pytype: enable=pyi-error | |
|
29 | ||
|
27 | 30 | |
|
28 | 31 | def hgweb(config, name=None, baseui=None): |
|
29 | 32 | """create an hgweb wsgi object |
@@ -1150,7 +1150,7 b' class svnsubrepo(abstractsubrepo):' | |||
|
1150 | 1150 | # commit revision so we can compare the subrepo state with |
|
1151 | 1151 | # both. We used to store the working directory one. |
|
1152 | 1152 | output, err = self._svncommand([b'info', b'--xml']) |
|
1153 | doc = xml.dom.minidom.parseString(output) | |
|
1153 | doc = xml.dom.minidom.parseString(output) # pytype: disable=pyi-error | |
|
1154 | 1154 | entries = doc.getElementsByTagName('entry') |
|
1155 | 1155 | lastrev, rev = b'0', b'0' |
|
1156 | 1156 | if entries: |
@@ -1174,7 +1174,7 b' class svnsubrepo(abstractsubrepo):' | |||
|
1174 | 1174 | """ |
|
1175 | 1175 | output, err = self._svncommand([b'status', b'--xml']) |
|
1176 | 1176 | externals, changes, missing = [], [], [] |
|
1177 | doc = xml.dom.minidom.parseString(output) | |
|
1177 | doc = xml.dom.minidom.parseString(output) # pytype: disable=pyi-error | |
|
1178 | 1178 | for e in doc.getElementsByTagName('entry'): |
|
1179 | 1179 | s = e.getElementsByTagName('wc-status') |
|
1180 | 1180 | if not s: |
@@ -1319,7 +1319,7 b' class svnsubrepo(abstractsubrepo):' | |||
|
1319 | 1319 | @annotatesubrepoerror |
|
1320 | 1320 | def files(self): |
|
1321 | 1321 | output = self._svncommand([b'list', b'--recursive', b'--xml'])[0] |
|
1322 | doc = xml.dom.minidom.parseString(output) | |
|
1322 | doc = xml.dom.minidom.parseString(output) # pytype: disable=pyi-error | |
|
1323 | 1323 | paths = [] |
|
1324 | 1324 | for e in doc.getElementsByTagName('entry'): |
|
1325 | 1325 | kind = pycompat.bytestr(e.getAttribute('kind')) |
General Comments 0
You need to be logged in to leave comments.
Login now