urlutil: introduce a new `list_paths` function
This function will be useful for command and template that wants to display path
related information.
Differential Revision: https://phab.mercurial-scm.org/D10440
#require docutils gettext $ $TESTDIR/check-gendoc pt_BR checking for parse errors