##// END OF EJS Templates
bundle2: use a sorted dict for holding parameters...
Gregory Szorc -
r29591:6215b553 default
parent child Browse files
Show More
@@ -690,7 +690,7 b' class unbundle20(unpackermixin):'
690
690
691 def _processallparams(self, paramsblock):
691 def _processallparams(self, paramsblock):
692 """"""
692 """"""
693 params = {}
693 params = util.sortdict()
694 for p in paramsblock.split(' '):
694 for p in paramsblock.split(' '):
695 p = p.split('=', 1)
695 p = p.split('=', 1)
696 p = [urlreq.unquote(i) for i in p]
696 p = [urlreq.unquote(i) for i in p]
@@ -1115,8 +1115,8 b' class unbundlepart(unpackermixin):'
1115 self.mandatoryparams = tuple(mandatoryparams)
1115 self.mandatoryparams = tuple(mandatoryparams)
1116 self.advisoryparams = tuple(advisoryparams)
1116 self.advisoryparams = tuple(advisoryparams)
1117 # user friendly UI
1117 # user friendly UI
1118 self.params = dict(self.mandatoryparams)
1118 self.params = util.sortdict(self.mandatoryparams)
1119 self.params.update(dict(self.advisoryparams))
1119 self.params.update(self.advisoryparams)
1120 self.mandatorykeys = frozenset(p[0] for p in mandatoryparams)
1120 self.mandatorykeys = frozenset(p[0] for p in mandatoryparams)
1121
1121
1122 def _payloadchunks(self, chunknum=0):
1122 def _payloadchunks(self, chunknum=0):
General Comments 0
You need to be logged in to leave comments. Login now