Mercurial > hg
diff tests/test-logexchange.t @ 40069:fd4d59cf2ebb
remotenames: abort if literal revset pattern matches nothing
This is the convention of the other namespace revsets such as tag(). Let's
make the remote variants do the same.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 05 Oct 2018 21:43:57 +0900 |
parents | 6346e21eecc8 |
children | d7304434390f |
line wrap: on
line diff
--- a/tests/test-logexchange.t Fri Oct 05 21:39:41 2018 +0900 +++ b/tests/test-logexchange.t Fri Oct 05 21:43:57 2018 +0900 @@ -478,13 +478,23 @@ | ~ -Testing for a single name which does not exists +Testing for a literal name which does not exists, which should fail. $ hg log -r 'remotebranches(def)' -GT "{rev}:{node|short} {remotenames}\n" + abort: remote name 'def' does not exist! + [255] $ hg log -r 'remotebookmarks("server3")' -GT "{rev}:{node|short} {remotenames}\n" + abort: remote name 'server3' does not exist! + [255] $ hg log -r 'remotenames("server3")' -GT "{rev}:{node|short} {remotenames}\n" + abort: remote name 'server3' does not exist! + [255] + +Testing for a pattern which does not match anything, which shouldn't fail. + + $ hg log -r 'remotenames("re:^server3$")' Testing for multiple names, which is not supported.