##// END OF EJS Templates
paths: use `list_paths` in `hg paths`...
marmoute -
r47795:9bfe3818 default draft
parent child Browse files
Show More
@@ -5126,15 +5126,9 b' def paths(ui, repo, search=None, **opts)'
5126 """
5126 """
5127
5127
5128 opts = pycompat.byteskwargs(opts)
5128 opts = pycompat.byteskwargs(opts)
5129
5130 pathitems = urlutil.list_paths(ui, search)
5129 ui.pager(b'paths')
5131 ui.pager(b'paths')
5130 if search:
5131 pathitems = [
5132 (name, path)
5133 for name, path in pycompat.iteritems(ui.paths)
5134 if name == search
5135 ]
5136 else:
5137 pathitems = sorted(pycompat.iteritems(ui.paths))
5138
5132
5139 fm = ui.formatter(b'paths', opts)
5133 fm = ui.formatter(b'paths', opts)
5140 if fm.isplain():
5134 if fm.isplain():
General Comments 0
You need to be logged in to leave comments. Login now