Mercurial > public > mercurial-scm > hg-stable
diff tests/test-paths.t @ 14331:3b9a896af09c
paths: Add support for -q/--quiet
Suppresses output (resolved paths or "not found!") when searching a path,
similar to "grep -q".
Sample usage: hg paths -q foo || echo "there is no foo"
Just prints path names (instead of "name = result") when listing all path
definitions, like "hg bookmarks -q".
Sample usage: hg paths -q | while read i; do hg incoming "$i"; done
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 16 May 2011 11:41:48 +0200 |
parents | 16d5e80876de |
children | 9910f60a37ee |
line wrap: on
line diff
--- a/tests/test-paths.t Mon May 16 11:14:06 2011 +0200 +++ b/tests/test-paths.t Mon May 16 11:41:48 2011 +0200 @@ -25,6 +25,17 @@ $ SOMETHING=/foo hg paths dupe = $TESTTMP/b expand = /foo/bar + $ hg paths -q + dupe + expand + $ hg paths dupe + $TESTTMP/b + $ hg paths -q dupe + $ hg paths unknown + not found! + [1] + $ hg paths -q unknown + [1] $ cd .. 'file:' disables [paths] entries for clone destination