# HG changeset patch # User Mads Kiilerich # Date 1476726516 -7200 # Node ID b4074417b66114a8786bfa49699859ab79918d79 # Parent 1894c830ee7433740c4d802f10c5f3f884b41103 revset: optimize for destination() being "inefficient" destination() will scan through the whole subset and read extras for each revision to get its source. diff -r 1894c830ee74 -r b4074417b661 mercurial/revset.py --- a/mercurial/revset.py Tue Oct 11 04:39:47 2016 +0200 +++ b/mercurial/revset.py Mon Oct 17 19:48:36 2016 +0200 @@ -2595,7 +2595,7 @@ f = getsymbol(x[1]) wa, ta = _optimize(x[2], small) if f in ('author', 'branch', 'closed', 'date', 'desc', 'file', 'grep', - 'keyword', 'outgoing', 'user'): + 'keyword', 'outgoing', 'user', 'destination'): w = 10 # slow elif f in ('modifies', 'adds', 'removes'): w = 30 # slower