Submitter | Durham Goode |
---|---|
Date | Sept. 12, 2014, 10:21 p.m. |
Message ID | <73e9a122290c3428b0c7.1410560462@dev2000.prn2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/5812/ |
State | Superseded |
Headers | show |
Comments
On 9/12/14, 3:21 PM, Durham Goode wrote: > # HG changeset patch > # User Durham Goode <durham@fb.com> > # Date 1410559251 25200 > # Fri Sep 12 15:00:51 2014 -0700 > # Node ID 73e9a122290c3428b0c71353c566e7ab7c50ebbb > # Parent f40b873cf6aa1a7b0f401c3df8090e6fb8000698 > revset: make parents() O(number of parents) > > Strip executes a revset like this: > Don't queue this. In my haste I didn't run the tests on the latest version, and this patch caused some test-revset.t result orders to change. So I need to fix the test.
Patch
diff --git a/contrib/revsetbenchmarks.txt b/contrib/revsetbenchmarks.txt --- a/contrib/revsetbenchmarks.txt +++ b/contrib/revsetbenchmarks.txt @@ -24,3 +24,4 @@ roots((0:tip)::) (not public() - obsolete()) (_intlist('20000\x0020001')) and merge() +parents(20000) diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -1238,7 +1238,7 @@ cl = repo.changelog for r in getset(repo, spanset(repo), x): ps.update(cl.parentrevs(r)) - return subset & ps + return baseset(ps) & subset def parentspec(repo, subset, x, n): """``set^0``