##// END OF EJS Templates
graphlog: multiple --user must be or'ed
Patrick Mezard -
r16148:184cc3c3 default
parent child Browse files
Show More
@@ -260,7 +260,7 b' def revset(pats, opts):'
260 'keyword': ('keyword($)', ' and '),
260 'keyword': ('keyword($)', ' and '),
261 'only_branch': ('branch($)', ' and '),
261 'only_branch': ('branch($)', ' and '),
262 'prune': ('not ($ or ancestors($))', ' and '),
262 'prune': ('not ($ or ancestors($))', ' and '),
263 'user': ('user($)', ' and '),
263 'user': ('user($)', ' or '),
264 }
264 }
265 optrevset = []
265 optrevset = []
266 revset = []
266 revset = []
@@ -1414,7 +1414,17 b' Do not crash or produce strange graphs i'
1414
1414
1415 Test log -G options
1415 Test log -G options
1416
1416
1417 $ hg log -G -u 'something nice'
1417 $ testlog() {
1418 > hg log -G --print-revset "$@"
1419 > hg log --template 'nodetag {rev}\n' "$@" | grep nodetag \
1420 > | sed 's/.*nodetag/nodetag/' > log.nodes
1421 > hg log -G --template 'nodetag {rev}\n' "$@" | grep nodetag \
1422 > | sed 's/.*nodetag/nodetag/' > glog.nodes
1423 > diff -u log.nodes glog.nodes
1424 > }
1425
1426 $ testlog -u test -u not-a-user
1427 ('group', ('group', ('or', ('func', ('symbol', 'user'), ('string', 'test')), ('func', ('symbol', 'user'), ('string', 'not-a-user')))))
1418 $ hg log -G -b 'something nice'
1428 $ hg log -G -b 'something nice'
1419 abort: unknown revision 'something nice'!
1429 abort: unknown revision 'something nice'!
1420 [255]
1430 [255]
General Comments 0
You need to be logged in to leave comments. Login now