2106 p = [cp.node() for cp in ctx.parents()] |
2106 p = [cp.node() for cp in ctx.parents()] |
2107 |
2107 |
2108 displayer = cmdutil.show_changeset(ui, repo, opts) |
2108 displayer = cmdutil.show_changeset(ui, repo, opts) |
2109 for n in p: |
2109 for n in p: |
2110 if n != nullid: |
2110 if n != nullid: |
2111 displayer.show(repo[n]) |
2111 displayer.show(repo[n]) |
2112 |
2112 |
2113 def paths(ui, repo, search=None): |
2113 def paths(ui, repo, search=None): |
2114 """show definition of symbolic path names |
2114 """show aliases for remote repositories |
2115 |
2115 |
2116 Show definition of symbolic path name NAME. If no name is given, show |
2116 Show definition of symbolic path name NAME. If no name is given, show |
2117 definition of available names. |
2117 definition of available names. |
2118 |
|
2119 Path names are defined in the [paths] section of /etc/mercurial/hgrc |
2118 Path names are defined in the [paths] section of /etc/mercurial/hgrc |
2120 and $HOME/.hgrc. If run inside a repository, .hg/hgrc is used, too. |
2119 and $HOME/.hgrc. If run inside a repository, .hg/hgrc is used, too. |
2121 """ |
2120 """ |
2122 if search: |
2121 if search: |
2123 for name, path in ui.configitems("paths"): |
2122 for name, path in ui.configitems("paths"): |