##// END OF EJS Templates
fix use of python 2.4 features.
Vadim Gelfer -
r1937:3f6be77e default
parent child Browse files
Show More
@@ -413,8 +413,12 b' class changeset_templater(object):'
413 def one(v, tag=name):
413 def one(v, tag=name):
414 try:
414 try:
415 vargs.update(v)
415 vargs.update(v)
416 except ValueError:
416 except (AttributeError, ValueError):
417 vargs.update([(name, v)])
417 try:
418 for a, b in v:
419 vargs[a] = b
420 except ValueError:
421 vargs[name] = v
418 return self.t(tag, **vargs)
422 return self.t(tag, **vargs)
419 lastname = 'last_' + name
423 lastname = 'last_' + name
420 if lastname in self.t:
424 if lastname in self.t:
@@ -441,8 +445,8 b' class changeset_templater(object):'
441 if self.ui.debugflag:
445 if self.ui.debugflag:
442 def showmanifest(**args):
446 def showmanifest(**args):
443 args = args.copy()
447 args = args.copy()
444 args.update(rev=self.repo.manifest.rev(changes[0]),
448 args.update(dict(rev=self.repo.manifest.rev(changes[0]),
445 node=hex(changes[0]))
449 node=hex(changes[0])))
446 yield self.t('manifest', **args)
450 yield self.t('manifest', **args)
447 else:
451 else:
448 showmanifest = ''
452 showmanifest = ''
General Comments 0
You need to be logged in to leave comments. Login now