diff mercurial/cmdutil.py @ 35643:668c5a527eff

log: simplify 'x or ancestors(x)' expression 'ancestors(x)' includes 'x'.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 02 Jan 2018 17:00:48 +0900
parents e64baf32782a
children 7a0a90d63a8c
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Jan 02 16:58:37 2018 +0900
+++ b/mercurial/cmdutil.py	Tue Jan 02 17:00:48 2018 +0900
@@ -2352,7 +2352,7 @@
     '_patsfollow':      ('follow(%(val)r)', ' or '),
     '_patsfollowfirst': ('_followfirst(%(val)r)', ' or '),
     'keyword':          ('keyword(%(val)r)', ' or '),
-    'prune':            ('not (%(val)r or ancestors(%(val)r))', ' and '),
+    'prune':            ('not ancestors(%(val)r)', ' and '),
     'user':             ('user(%(val)r)', ' or '),
 }