##// END OF EJS Templates
template: use `list_paths` in `peerurls`...
marmoute -
r47796:74891f52 default draft
parent child Browse files
Show More
@@ -27,7 +27,10 b' from . import ('
27 27 templateutil,
28 28 util,
29 29 )
30 from .utils import stringutil
30 from .utils import (
31 stringutil,
32 urlutil,
33 )
31 34
32 35 _hybrid = templateutil.hybrid
33 36 hybriddict = templateutil.hybriddict
@@ -660,9 +663,8 b' def showpeerurls(context, mapping):'
660 663 repo = context.resource(mapping, b'repo')
661 664 # see commands.paths() for naming of dictionary keys
662 665 paths = repo.ui.paths
663 urls = util.sortdict(
664 (k, p.rawloc) for k, p in sorted(pycompat.iteritems(paths))
665 )
666 all_paths = urlutil.list_paths(repo.ui)
667 urls = util.sortdict((k, p.rawloc) for k, p in all_paths)
666 668
667 669 def makemap(k):
668 670 p = paths[k]
General Comments 0
You need to be logged in to leave comments. Login now