##// END OF EJS Templates
graphlog: fix log -G option types when translating to revset...
Patrick Mezard -
r14081:8670e369 default
parent child Browse files
Show More
@@ -236,12 +236,12 b' def revset(pats, opts):'
236 revop = opt2revset.get(op, op)
236 revop = opt2revset.get(op, op)
237 if op in ('follow', 'only_merges', 'no_merges'):
237 if op in ('follow', 'only_merges', 'no_merges'):
238 revset.append('%s()' % revop)
238 revset.append('%s()' % revop)
239 elif op in ("date", "keyword", "remove", "user", "branch",
239 elif op in ('date', 'remove'):
240 "only_branch", "prune"):
240 revset.append('%s(%s)' % (revop, val))
241 revset.append('%s(%s)' % (op, val))
241 elif op in ('include', 'exclude', 'user', 'branch', 'keyword',
242 elif op in ('include', 'exclude'):
242 'prune', 'only_branch'):
243 for f in val:
243 for f in val:
244 revset.append('%s(%r)' % (op, f))
244 revset.append('%s(%r)' % (revop, f))
245 elif op == 'rev':
245 elif op == 'rev':
246 revset.extend(val)
246 revset.extend(val)
247
247
@@ -1393,3 +1393,16 b' Do not crash or produce strange graphs i'
1393 | | | date: Thu Jan 01 00:00:32 1970 +0000
1393 | | | date: Thu Jan 01 00:00:32 1970 +0000
1394 | | | summary: (32) expand
1394 | | | summary: (32) expand
1395 | | |
1395 | | |
1396
1397 Test log -G options
1398
1399 $ hg log -G -u 'something nice'
1400 $ hg log -G -b 'something nice'
1401 abort: unknown revision 'something nice'!
1402 [255]
1403 $ hg log -G -k 'something nice'
1404 $ hg log -G --only-branch 'something nice'
1405 abort: unknown revision 'something nice'!
1406 [255]
1407 $ hg log -G --include 'some file' --exclude 'another file'
1408
General Comments 0
You need to be logged in to leave comments. Login now