diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -333,5 +333,5 @@ def _roots(patterns): def _anypats(patterns): for kind, name in patterns: - if kind in ('glob', 're', 'relglob', 'relre'): + if kind in ('glob', 're', 'relglob', 'relre', 'set'): return True diff --git a/tests/test-glog.t b/tests/test-glog.t --- a/tests/test-glog.t +++ b/tests/test-glog.t @@ -1663,6 +1663,8 @@ Test --copies Test "set:..." and parent revision $ hg up -q 4 + $ testlog "set:copied()" + ('group', ('group', ('func', ('symbol', '_matchfiles'), ('list', ('string', 'r:'), ('string', 'p:set:copied()'))))) $ testlog --include "set:copied()" ('group', ('group', ('func', ('symbol', '_matchfiles'), ('list', ('string', 'r:'), ('string', 'i:set:copied()'))))) $ testlog -r "sort(file('set:copied()'), -rev)"