diff mercurial/templatekw.py @ 34539:f30e59703d98

templatekw: rename peerpaths to peerurls per naming convention (BC) Since each element is called as "url", the template keyword should be named as "<whatever>urls". {peerurls} is now stabilized.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 18 Sep 2017 23:53:05 +0900
parents ac38e889b33a
children 1c7c4445686f
line wrap: on
line diff
--- a/mercurial/templatekw.py	Mon Sep 18 23:31:01 2017 +0900
+++ b/mercurial/templatekw.py	Mon Sep 18 23:53:05 2017 +0900
@@ -653,10 +653,10 @@
         return 'obsolete'
     return ''
 
-@templatekeyword('peerpaths')
-def showpeerpaths(repo, **args):
+@templatekeyword('peerurls')
+def showpeerurls(repo, **args):
     """A dictionary of repository locations defined in the [paths] section
-    of your configuration file. (EXPERIMENTAL)"""
+    of your configuration file."""
     # see commands.paths() for naming of dictionary keys
     paths = repo.ui.paths
     urls = util.sortdict((k, p.rawloc) for k, p in sorted(paths.iteritems()))