equal
deleted
inserted
replaced
54 |
54 |
55 def archivelist(ui, nodeid, url=None): |
55 def archivelist(ui, nodeid, url=None): |
56 allowed = ui.configlist(b'web', b'allow-archive', untrusted=True) |
56 allowed = ui.configlist(b'web', b'allow-archive', untrusted=True) |
57 archives = [] |
57 archives = [] |
58 |
58 |
59 for typ, spec in pycompat.iteritems(archivespecs): |
59 for typ, spec in archivespecs.items(): |
60 if typ in allowed or ui.configbool( |
60 if typ in allowed or ui.configbool( |
61 b'web', b'allow' + typ, untrusted=True |
61 b'web', b'allow' + typ, untrusted=True |
62 ): |
62 ): |
63 archives.append( |
63 archives.append( |
64 { |
64 { |
861 # implement if necessary |
861 # implement if necessary |
862 raise error.ParseError(_(b'not filterable')) |
862 raise error.ParseError(_(b'not filterable')) |
863 |
863 |
864 def itermaps(self, context): |
864 def itermaps(self, context): |
865 separator = self._start |
865 separator = self._start |
866 for key, value in sorted(pycompat.iteritems(self._vars)): |
866 for key, value in sorted(self._vars.items()): |
867 yield { |
867 yield { |
868 b'name': key, |
868 b'name': key, |
869 b'value': pycompat.bytestr(value), |
869 b'value': pycompat.bytestr(value), |
870 b'separator': separator, |
870 b'separator': separator, |
871 } |
871 } |