# HG changeset patch # User Patrick Mezard # Date 2012-02-22 11:30:15 # Node ID 0424f3c7d7ace8597b2fffc70f1795b2d9243718 # Parent 6acbbb0c738127dca1b357f8a102b8e5d61dfbf2 graphlog: multiple --keyword must be or'ed diff --git a/hgext/graphlog.py b/hgext/graphlog.py --- a/hgext/graphlog.py +++ b/hgext/graphlog.py @@ -257,7 +257,7 @@ def revset(pats, opts): 'branch': ('branch($)', ' or '), 'exclude': ('not file($)', ' and '), 'include': ('file($)', ' and '), - 'keyword': ('keyword($)', ' and '), + 'keyword': ('keyword($)', ' or '), 'only_branch': ('branch($)', ' and '), 'prune': ('not ($ or ancestors($))', ' and '), 'user': ('user($)', ' or '), diff --git a/tests/test-glog.t b/tests/test-glog.t --- a/tests/test-glog.t +++ b/tests/test-glog.t @@ -1435,8 +1435,8 @@ Test log -G options abort: unknown revision 'not-a-branch'! $ testlog -b default -b branch ('group', ('group', ('or', ('func', ('symbol', 'branch'), ('string', 'default')), ('func', ('symbol', 'branch'), ('string', 'branch'))))) - $ hg log -G --print-revset -k 'something' -k 'nice' - ('group', ('group', ('and', ('func', ('symbol', 'keyword'), ('string', 'something')), ('func', ('symbol', 'keyword'), ('string', 'nice'))))) + $ testlog -k expand -k merge + ('group', ('group', ('or', ('func', ('symbol', 'keyword'), ('string', 'expand')), ('func', ('symbol', 'keyword'), ('string', 'merge'))))) $ hg log -G --only-branch 'something nice' abort: unknown revision 'something nice'! [255]