equal
deleted
inserted
replaced
3422 $ hg log -r 0 -T '{dict(x=rev, y=node|short)|json}\n' |
3422 $ hg log -r 0 -T '{dict(x=rev, y=node|short)|json}\n' |
3423 {"x": 0, "y": "f7769ec2ab97"} |
3423 {"x": 0, "y": "f7769ec2ab97"} |
3424 $ hg log -r 0 -T '{dict()|json}\n' |
3424 $ hg log -r 0 -T '{dict()|json}\n' |
3425 {} |
3425 {} |
3426 |
3426 |
|
3427 $ hg log -r 0 -T '{dict(rev, node=node|short)}\n' |
|
3428 rev=0 node=f7769ec2ab97 |
|
3429 $ hg log -r 0 -T '{dict(rev, node|short)}\n' |
|
3430 rev=0 node=f7769ec2ab97 |
|
3431 |
|
3432 $ hg log -r 0 -T '{dict(rev, rev=rev)}\n' |
|
3433 hg: parse error: duplicated dict key 'rev' inferred |
|
3434 [255] |
|
3435 $ hg log -r 0 -T '{dict(node, node|short)}\n' |
|
3436 hg: parse error: duplicated dict key 'node' inferred |
|
3437 [255] |
|
3438 $ hg log -r 0 -T '{dict(1 + 2)}' |
|
3439 hg: parse error: dict key cannot be inferred |
|
3440 [255] |
|
3441 |
3427 $ hg log -r 0 -T '{dict(x=rev, x=node)}' |
3442 $ hg log -r 0 -T '{dict(x=rev, x=node)}' |
3428 hg: parse error: dict got multiple values for keyword argument 'x' |
3443 hg: parse error: dict got multiple values for keyword argument 'x' |
3429 [255] |
3444 [255] |
3430 |
3445 |
3431 Test get function: |
3446 Test get function: |