[PATCH 1 of 3] tests: teach hypothesis to try the summary command

Augie Fackler raf at durin42.com
Tue Feb 23 14:32:14 EST 2016


On Mon, Feb 22, 2016 at 11:43:40AM -0800, Simon Farnsworth wrote:
> # HG changeset patch
> # User Simon Farnsworth <simonfar at fb.com>
> # Date 1456164049 28800
> #      Mon Feb 22 10:00:49 2016 -0800
> # Branch all
> # Node ID 7616a2b63284bb2670897a2e6c05815f39b6a6ed
> # Parent  82596ded26cc0678f634491691bf0cd66690f010
> tests: teach hypothesis to try the summary command

I feel like I'm missing some context here. This patch modifies a file
my local clone of hg doesn't have - am I missing some other series
that needs to come first?

>
> A simple example of adding a new rule.
>
> diff --git a/tests/test-verify-repo-operations.py b/tests/test-verify-repo-operations.py
> --- a/tests/test-verify-repo-operations.py
> +++ b/tests/test-verify-repo-operations.py
> @@ -420,6 +420,10 @@
>          self.hg("export")
>
>      @rule()
> +    def summary(self):
> +        self.hg("summary")
> +
> +    @rule()
>      @precondition(lambda self: self.has_extension("shelve"))
>      def shelve(self):
>          with acceptable_errors("nothing changed"):
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list