[PATCH] tests: add tests for non-existant branch/tag/bookmark
Idan K
idankk86 at gmail.com
Sun Apr 10 09:36:16 CDT 2011
On Sun, Apr 10, 2011 at 5:28 PM, Idan Kamara <idankk86 at gmail.com> wrote:
> # HG changeset patch
> # User Idan Kamara <idankk86 at gmail.com>
> # Date 1302424253 -10800
> # Node ID f03e905cea080109d2800b5ff8c7fd4de3b65bc9
> # Parent ec57b9202bb7a9cc7f744fd177bef8826fb992c2
> tests: add tests for non-existant branch/tag/bookmark
complements 27573f2ddfb9
> diff -r ec57b9202bb7 -r f03e905cea08 tests/test-bookmarks.t
> --- a/tests/test-bookmarks.t Sat Apr 09 23:53:23 2011 +0300
> +++ b/tests/test-bookmarks.t Sun Apr 10 11:30:53 2011 +0300
> @@ -84,6 +84,10 @@
> date: Thu Jan 01 00:00:00 1970 +0000
> summary: 1
>
> + $ hg log -r 'bookmark(unknown)'
> + abort: bookmark 'unknown' does not exist
> + [255]
> +
> $ hg help revsets | grep 'bookmark('
> "bookmark([name])"
>
> diff -r ec57b9202bb7 -r f03e905cea08 tests/test-revset.t
> --- a/tests/test-revset.t Sat Apr 09 23:53:23 2011 +0300
> +++ b/tests/test-revset.t Sun Apr 10 11:30:53 2011 +0300
> @@ -297,6 +297,12 @@
> 6
> $ log 'tag(tip)'
> 9
> + $ log 'tag(unknown)'
> + abort: tag 'unknown' does not exist
> + [255]
> + $ log 'branch(unknown)'
> + abort: unknown revision 'unknown'!
> + [255]
> $ log 'user(bob)'
> 2
>
>
Somehow lost a line from the commit message, added it to the quoted patch
above.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110410/ce9f2330/attachment.htm>
More information about the Mercurial-devel
mailing list