##// END OF EJS Templates
bundle: introduce a listkey handler...
Pierre-Yves David -
r21655:35095f33 default
parent child Browse files
Show More
@@ -146,6 +146,7 b' import util'
146 import struct
146 import struct
147 import urllib
147 import urllib
148 import string
148 import string
149 import pushkey
149
150
150 import changegroup, error
151 import changegroup, error
151 from i18n import _
152 from i18n import _
@@ -860,3 +861,10 b' def handlereplycaps(op, inpart):'
860 def handlereplycaps(op, inpart):
861 def handlereplycaps(op, inpart):
861 """Used to transmit push race error over the wire"""
862 """Used to transmit push race error over the wire"""
862 raise error.ResponseError(_('push failed:'), inpart.params['message'])
863 raise error.ResponseError(_('push failed:'), inpart.params['message'])
864
865 @parthandler('b2x:listkeys', ('namespace',))
866 def handlelistkeys(op, inpart):
867 """retrieve pushkey namespace content stored in a bundle2"""
868 namespace = inpart.params['namespace']
869 r = pushkey.decodekeys(inpart.read())
870 op.records.add('listkeys', (namespace, r))
General Comments 0
You need to be logged in to leave comments. Login now