Mercurial > hg
changeset 27724:c36fa631cb6e
paths: drop ui.status label from output of "hg paths name"
We just need to not print path if --quiet. ui.status label is unwanted.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 13 Dec 2015 21:54:00 +0900 |
parents | edd2615ad226 |
children | 64ee5866e107 |
files | mercurial/commands.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Jan 11 21:00:29 2016 -0500 +++ b/mercurial/commands.py Sun Dec 13 21:54:00 2015 +0900 @@ -5400,7 +5400,8 @@ if search: for name, path in sorted(ui.paths.iteritems()): if name == search: - ui.status("%s\n" % util.hidepassword(path.rawloc)) + if not ui.quiet: + ui.write("%s\n" % util.hidepassword(path.rawloc)) return if not ui.quiet: ui.warn(_("not found!\n"))