##// END OF EJS Templates
template: make an explicit closure for formatting entry in peerurls...
marmoute -
r47797:d63c01a3 default draft
parent child Browse files
Show More
@@ -672,7 +672,10 b' def showpeerurls(context, mapping):'
672 d.update((o, v) for o, v in sorted(pycompat.iteritems(p.suboptions)))
672 d.update((o, v) for o, v in sorted(pycompat.iteritems(p.suboptions)))
673 return d
673 return d
674
674
675 return _hybrid(None, urls, makemap, lambda k: b'%s=%s' % (k, urls[k]))
675 def format_one(k):
676 return b'%s=%s' % (k, urls[k])
677
678 return _hybrid(None, urls, makemap, format_one)
676
679
677
680
678 @templatekeyword(b"predecessors", requires={b'repo', b'ctx'})
681 @templatekeyword(b"predecessors", requires={b'repo', b'ctx'})
General Comments 0
You need to be logged in to leave comments. Login now