Submitter | Simon Farnsworth |
---|---|
Date | Feb. 22, 2016, 7:43 p.m. |
Message ID | <7616a2b63284bb267089.1456170220@dev1430.lla1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/13297/ |
State | Not Applicable |
Headers | show |
Comments
On Mon, Feb 22, 2016 at 11:43:40AM -0800, Simon Farnsworth wrote: > # HG changeset patch > # User Simon Farnsworth <simonfar@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@mercurial-scm.org > https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
On 23/02/2016, 19:32, "Augie Fackler" <raf@durin42.com> wrote: >On Mon, Feb 22, 2016 at 11:43:40AM -0800, Simon Farnsworth wrote: >> # HG changeset patch >> # User Simon Farnsworth <simonfar@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? It appears that I failed to drive hg email properly. This should be a reply to my mail in the "Testing Mercurial with Hypothesis" thread, Message-ID: <34C695D8-7335-4A65-884D-037F9B54F2E0@fb.com> - that gives you the context. Simon
Patch
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"):