Show More
@@ -146,6 +146,7 b' import util' | |||
|
146 | 146 | import struct |
|
147 | 147 | import urllib |
|
148 | 148 | import string |
|
149 | import pushkey | |
|
149 | 150 | |
|
150 | 151 | import changegroup, error |
|
151 | 152 | from i18n import _ |
@@ -860,3 +861,10 b' def handlereplycaps(op, inpart):' | |||
|
860 | 861 | def handlereplycaps(op, inpart): |
|
861 | 862 | """Used to transmit push race error over the wire""" |
|
862 | 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