Mercurial > public > mercurial-scm > hg-stable
diff tests/test-paths.t @ 27726:7e9dc8bbebf6
paths: use single loop for both search=None|pattern cases
This will help porting to the formatter API. This patch adds test for empty
pathitems to make sure "hg paths" never say "not found!".
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 13 Dec 2015 22:02:32 +0900 |
parents | 944af8e2eb4c |
children | 294037159c64 |
line wrap: on
line diff
--- a/tests/test-paths.t Sun Dec 13 21:55:57 2015 +0900 +++ b/tests/test-paths.t Sun Dec 13 22:02:32 2015 +0900 @@ -3,6 +3,16 @@ updating to branch default 0 files updated, 0 files merged, 0 files removed, 0 files unresolved $ cd a + +with no paths: + + $ hg paths + $ hg paths unknown + not found! + [1] + +with paths: + $ echo '[paths]' >> .hg/hgrc $ echo 'dupe = ../b#tip' >> .hg/hgrc $ echo 'expand = $SOMETHING/bar' >> .hg/hgrc