comparison tests/test-glog-beautifygraph.t @ 46204:36c05ab02232

beautifygraph: change the current commit symbol The existing "circle with vertical fill" character renders as full width in many terminals making the beautified symbols have uneven size. Additionally, the proposed "fisheye" character is the logic 'active' version of the current merge symbol, "bullseye." Differential Revision: https://phab.mercurial-scm.org/D9678
author msuozzo@google.com
date Sat, 02 Jan 2021 01:48:12 -0500
parents 1bf2b44c4007
children
comparison
equal deleted inserted replaced
46203:63f0e31af0e5 46204:36c05ab02232
284 284
285 285
286 The rest of our tests will use the default narrow text UTF-8. 286 The rest of our tests will use the default narrow text UTF-8.
287 287
288 $ hg log -G -q 288 $ hg log -G -q
289 \xe2\x97\x8d 34:fea3ac5810e0 (esc) 289 \xe2\x97\x89 34:fea3ac5810e0 (esc)
290 \xe2\x94\x82 (esc) 290 \xe2\x94\x82 (esc)
291 \xe2\x94\x82 \xe2\x97\x8b 33:68608f5145f9 (esc) 291 \xe2\x94\x82 \xe2\x97\x8b 33:68608f5145f9 (esc)
292 \xe2\x94\x82 \xe2\x94\x82 (esc) 292 \xe2\x94\x82 \xe2\x94\x82 (esc)
293 \xe2\x97\x8b \xe2\x94\x82 32:d06dffa21a31 (esc) 293 \xe2\x97\x8b \xe2\x94\x82 32:d06dffa21a31 (esc)
294 \xe2\x94\x82\xe2\x95\xb2 \xe2\x95\xb2 (esc) 294 \xe2\x94\x82\xe2\x95\xb2 \xe2\x95\xb2 (esc)
356 \xe2\x94\x82\xe2\x95\xb1 (esc) 356 \xe2\x94\x82\xe2\x95\xb1 (esc)
357 \xe2\x97\x8b 0:e6eb3150255d (esc) 357 \xe2\x97\x8b 0:e6eb3150255d (esc)
358 358
359 359
360 $ hg log -G 360 $ hg log -G
361 \xe2\x97\x8d changeset: 34:fea3ac5810e0 (esc) 361 \xe2\x97\x89 changeset: 34:fea3ac5810e0 (esc)
362 \xe2\x94\x82 tag: tip (esc) 362 \xe2\x94\x82 tag: tip (esc)
363 \xe2\x94\x82 parent: 32:d06dffa21a31 (esc) 363 \xe2\x94\x82 parent: 32:d06dffa21a31 (esc)
364 \xe2\x94\x82 user: test (esc) 364 \xe2\x94\x82 user: test (esc)
365 \xe2\x94\x82 date: Thu Jan 01 00:00:34 1970 +0000 (esc) 365 \xe2\x94\x82 date: Thu Jan 01 00:00:34 1970 +0000 (esc)
366 \xe2\x94\x82 summary: (34) head (esc) 366 \xe2\x94\x82 summary: (34) head (esc)
592 date: Thu Jan 01 00:00:00 1970 +0000 592 date: Thu Jan 01 00:00:00 1970 +0000
593 summary: (0) root 593 summary: (0) root
594 594
595 File glog: 595 File glog:
596 $ hg log -G a 596 $ hg log -G a
597 \xe2\x97\x8d changeset: 34:fea3ac5810e0 (esc) 597 \xe2\x97\x89 changeset: 34:fea3ac5810e0 (esc)
598 \xe2\x94\x82 tag: tip (esc) 598 \xe2\x94\x82 tag: tip (esc)
599 \xe2\x94\x82 parent: 32:d06dffa21a31 (esc) 599 \xe2\x94\x82 parent: 32:d06dffa21a31 (esc)
600 \xe2\x94\x82 user: test (esc) 600 \xe2\x94\x82 user: test (esc)
601 \xe2\x94\x82 date: Thu Jan 01 00:00:34 1970 +0000 (esc) 601 \xe2\x94\x82 date: Thu Jan 01 00:00:34 1970 +0000 (esc)
602 \xe2\x94\x82 summary: (34) head (esc) 602 \xe2\x94\x82 summary: (34) head (esc)
829 summary: (0) root 829 summary: (0) root
830 830
831 File glog per revset: 831 File glog per revset:
832 832
833 $ hg log -G -r 'file("a")' 833 $ hg log -G -r 'file("a")'
834 \xe2\x97\x8d changeset: 34:fea3ac5810e0 (esc) 834 \xe2\x97\x89 changeset: 34:fea3ac5810e0 (esc)
835 \xe2\x94\x82 tag: tip (esc) 835 \xe2\x94\x82 tag: tip (esc)
836 \xe2\x94\x82 parent: 32:d06dffa21a31 (esc) 836 \xe2\x94\x82 parent: 32:d06dffa21a31 (esc)
837 \xe2\x94\x82 user: test (esc) 837 \xe2\x94\x82 user: test (esc)
838 \xe2\x94\x82 date: Thu Jan 01 00:00:34 1970 +0000 (esc) 838 \xe2\x94\x82 date: Thu Jan 01 00:00:34 1970 +0000 (esc)
839 \xe2\x94\x82 summary: (34) head (esc) 839 \xe2\x94\x82 summary: (34) head (esc)
1266 1266
1267 #if no-outer-repo 1267 #if no-outer-repo
1268 1268
1269 From outer space: 1269 From outer space:
1270 $ hg log -G -l1 repo 1270 $ hg log -G -l1 repo
1271 \xe2\x97\x8d changeset: 34:fea3ac5810e0 (esc) 1271 \xe2\x97\x89 changeset: 34:fea3ac5810e0 (esc)
1272 \xe2\x94\x82 tag: tip (esc) 1272 \xe2\x94\x82 tag: tip (esc)
1273 \xe2\x95\xa7 parent: 32:d06dffa21a31 (esc) 1273 \xe2\x95\xa7 parent: 32:d06dffa21a31 (esc)
1274 user: test 1274 user: test
1275 date: Thu Jan 01 00:00:34 1970 +0000 1275 date: Thu Jan 01 00:00:34 1970 +0000
1276 summary: (34) head 1276 summary: (34) head
1277 1277
1278 $ hg log -G -l1 repo/a 1278 $ hg log -G -l1 repo/a
1279 \xe2\x97\x8d changeset: 34:fea3ac5810e0 (esc) 1279 \xe2\x97\x89 changeset: 34:fea3ac5810e0 (esc)
1280 \xe2\x94\x82 tag: tip (esc) 1280 \xe2\x94\x82 tag: tip (esc)
1281 \xe2\x95\xa7 parent: 32:d06dffa21a31 (esc) 1281 \xe2\x95\xa7 parent: 32:d06dffa21a31 (esc)
1282 user: test 1282 user: test
1283 date: Thu Jan 01 00:00:34 1970 +0000 1283 date: Thu Jan 01 00:00:34 1970 +0000
1284 summary: (34) head 1284 summary: (34) head
1297 $ hg add two 1297 $ hg add two
1298 $ hg commit -mtwo 1298 $ hg commit -mtwo
1299 $ echo more >two 1299 $ echo more >two
1300 $ hg commit -mmore 1300 $ hg commit -mmore
1301 $ hg log -G two 1301 $ hg log -G two
1302 \xe2\x97\x8d changeset: 2:12c28321755b (esc) 1302 \xe2\x97\x89 changeset: 2:12c28321755b (esc)
1303 \xe2\x94\x82 tag: tip (esc) 1303 \xe2\x94\x82 tag: tip (esc)
1304 \xe2\x94\x82 user: test (esc) 1304 \xe2\x94\x82 user: test (esc)
1305 \xe2\x94\x82 date: Thu Jan 01 00:00:00 1970 +0000 (esc) 1305 \xe2\x94\x82 date: Thu Jan 01 00:00:00 1970 +0000 (esc)
1306 \xe2\x94\x82 summary: more (esc) 1306 \xe2\x94\x82 summary: more (esc)
1307 \xe2\x94\x82 (esc) 1307 \xe2\x94\x82 (esc)
1373 $ cd .. 1373 $ cd ..
1374 1374
1375 $ hg -R repo outgoing --graph repo2 1375 $ hg -R repo outgoing --graph repo2
1376 comparing with repo2 1376 comparing with repo2
1377 searching for changes 1377 searching for changes
1378 \xe2\x97\x8d changeset: 34:fea3ac5810e0 (esc) 1378 \xe2\x97\x89 changeset: 34:fea3ac5810e0 (esc)
1379 \xe2\x94\x82 tag: tip (esc) 1379 \xe2\x94\x82 tag: tip (esc)
1380 \xe2\x94\x82 parent: 32:d06dffa21a31 (esc) 1380 \xe2\x94\x82 parent: 32:d06dffa21a31 (esc)
1381 \xe2\x94\x82 user: test (esc) 1381 \xe2\x94\x82 user: test (esc)
1382 \xe2\x94\x82 date: Thu Jan 01 00:00:34 1970 +0000 (esc) 1382 \xe2\x94\x82 date: Thu Jan 01 00:00:34 1970 +0000 (esc)
1383 \xe2\x94\x82 summary: (34) head (esc) 1383 \xe2\x94\x82 summary: (34) head (esc)
1516 $ hg branch branch 1516 $ hg branch branch
1517 marked working directory as branch branch 1517 marked working directory as branch branch
1518 (branches are permanent and global, did you want a bookmark?) 1518 (branches are permanent and global, did you want a bookmark?)
1519 $ commit 36 "buggy merge: identical parents" 35 35 1519 $ commit 36 "buggy merge: identical parents" 35 35
1520 $ hg log -G -l5 1520 $ hg log -G -l5
1521 \xe2\x97\x8d changeset: 36:08a19a744424 (esc) 1521 \xe2\x97\x89 changeset: 36:08a19a744424 (esc)
1522 \xe2\x94\x82 branch: branch (esc) 1522 \xe2\x94\x82 branch: branch (esc)
1523 \xe2\x94\x82 tag: tip (esc) 1523 \xe2\x94\x82 tag: tip (esc)
1524 \xe2\x94\x82 parent: 35:9159c3644c5e (esc) 1524 \xe2\x94\x82 parent: 35:9159c3644c5e (esc)
1525 \xe2\x94\x82 parent: 35:9159c3644c5e (esc) 1525 \xe2\x94\x82 parent: 35:9159c3644c5e (esc)
1526 \xe2\x94\x82 user: test (esc) 1526 \xe2\x94\x82 user: test (esc)
1737 $ hg add d 1737 $ hg add d
1738 $ hg ci -m "mv a b; add d" 1738 $ hg ci -m "mv a b; add d"
1739 $ hg mv dir/b e 1739 $ hg mv dir/b e
1740 $ hg ci -m "mv dir/b e" 1740 $ hg ci -m "mv dir/b e"
1741 $ hg log -G --template '({rev}) {desc|firstline}\n' 1741 $ hg log -G --template '({rev}) {desc|firstline}\n'
1742 \xe2\x97\x8d (4) mv dir/b e (esc) 1742 \xe2\x97\x89 (4) mv dir/b e (esc)
1743 \xe2\x94\x82 (esc) 1743 \xe2\x94\x82 (esc)
1744 \xe2\x97\x8b (3) mv a b; add d (esc) 1744 \xe2\x97\x8b (3) mv a b; add d (esc)
1745 \xe2\x94\x82 (esc) 1745 \xe2\x94\x82 (esc)
1746 \xe2\x97\x8b (2) mv b dir/b (esc) 1746 \xe2\x97\x8b (2) mv b dir/b (esc)
1747 \xe2\x94\x82 (esc) 1747 \xe2\x94\x82 (esc)
1946 $ hg log -G --print-revset --follow-first e 1946 $ hg log -G --print-revset --follow-first e
1947 [] 1947 []
1948 [] 1948 []
1949 <generatorsetdesc-> 1949 <generatorsetdesc->
1950 $ hg log -G --follow-first e --template '{rev} {desc|firstline}\n' 1950 $ hg log -G --follow-first e --template '{rev} {desc|firstline}\n'
1951 \xe2\x97\x8d 6 merge 5 and 4 (esc) 1951 \xe2\x97\x89 6 merge 5 and 4 (esc)
1952 \xe2\x94\x82\xe2\x95\xb2 (esc) 1952 \xe2\x94\x82\xe2\x95\xb2 (esc)
1953 \xe2\x94\x82 \xe2\x95\xa7 (esc) 1953 \xe2\x94\x82 \xe2\x95\xa7 (esc)
1954 \xe2\x97\x8b 5 add another e (esc) 1954 \xe2\x97\x8b 5 add another e (esc)
1955 \xe2\x94\x82 (esc) 1955 \xe2\x94\x82 (esc)
1956 \xe2\x95\xa7 (esc) 1956 \xe2\x95\xa7 (esc)
1957 1957
1958 Test --copies 1958 Test --copies
1959 1959
1960 $ hg log -G --copies --template "{rev} {desc|firstline} \ 1960 $ hg log -G --copies --template "{rev} {desc|firstline} \
1961 > copies: {file_copies_switch}\n" 1961 > copies: {file_copies_switch}\n"
1962 \xe2\x97\x8d 6 merge 5 and 4 copies: (esc) 1962 \xe2\x97\x89 6 merge 5 and 4 copies: (esc)
1963 \xe2\x94\x82\xe2\x95\xb2 (esc) 1963 \xe2\x94\x82\xe2\x95\xb2 (esc)
1964 \xe2\x94\x82 \xe2\x97\x8b 5 add another e copies: (esc) 1964 \xe2\x94\x82 \xe2\x97\x8b 5 add another e copies: (esc)
1965 \xe2\x94\x82 \xe2\x94\x82 (esc) 1965 \xe2\x94\x82 \xe2\x94\x82 (esc)
1966 \xe2\x97\x8b \xe2\x94\x82 4 mv dir/b e copies: e (dir/b) (esc) 1966 \xe2\x97\x8b \xe2\x94\x82 4 mv dir/b e copies: e (dir/b) (esc)
1967 \xe2\x94\x82\xe2\x95\xb1 (esc) 1967 \xe2\x94\x82\xe2\x95\xb1 (esc)
2099 1 files changed, 1 insertions(+), 0 deletions(-) 2099 1 files changed, 1 insertions(+), 0 deletions(-)
2100 2100
2101 2101
2102 $ hg up -q 6 2102 $ hg up -q 6
2103 $ hg log -G --git --patch --follow-first e 2103 $ hg log -G --git --patch --follow-first e
2104 \xe2\x97\x8d changeset: 6:9feeac35a70a (esc) 2104 \xe2\x97\x89 changeset: 6:9feeac35a70a (esc)
2105 \xe2\x94\x82\xe2\x95\xb2 tag: tip (esc) 2105 \xe2\x94\x82\xe2\x95\xb2 tag: tip (esc)
2106 \xe2\x94\x82 \xe2\x95\xa7 parent: 5:99b31f1c2782 (esc) 2106 \xe2\x94\x82 \xe2\x95\xa7 parent: 5:99b31f1c2782 (esc)
2107 \xe2\x94\x82 parent: 4:17d952250a9d (esc) 2107 \xe2\x94\x82 parent: 4:17d952250a9d (esc)
2108 \xe2\x94\x82 user: test (esc) 2108 \xe2\x94\x82 user: test (esc)
2109 \xe2\x94\x82 date: Thu Jan 01 00:00:00 1970 +0000 (esc) 2109 \xe2\x94\x82 date: Thu Jan 01 00:00:00 1970 +0000 (esc)
2156 \xe2\x94\x82 \xe2\x94\x82 (esc) 2156 \xe2\x94\x82 \xe2\x94\x82 (esc)
2157 \xe2\x97\x8b \xe2\x94\x82 4 mv dir/b e (esc) 2157 \xe2\x97\x8b \xe2\x94\x82 4 mv dir/b e (esc)
2158 \xe2\x94\x82\xe2\x95\xb1 (esc) 2158 \xe2\x94\x82\xe2\x95\xb1 (esc)
2159 \xe2\x97\x8b 3 mv a b; add d (esc) 2159 \xe2\x97\x8b 3 mv a b; add d (esc)
2160 \xe2\x94\x82 (esc) 2160 \xe2\x94\x82 (esc)
2161 \xe2\x97\x8d 2 mv b dir/b (esc) 2161 \xe2\x97\x89 2 mv b dir/b (esc)
2162 \xe2\x94\x82 (esc) 2162 \xe2\x94\x82 (esc)
2163 \xe2\x97\x8b 1 copy a b (esc) 2163 \xe2\x97\x8b 1 copy a b (esc)
2164 \xe2\x94\x82 (esc) 2164 \xe2\x94\x82 (esc)
2165 \xe2\x97\x8b 0 add a (esc) 2165 \xe2\x97\x8b 0 add a (esc)
2166 2166
2443 \xe2\x94\x82\xe2\x95\xb2 (esc) 2443 \xe2\x94\x82\xe2\x95\xb2 (esc)
2444 \xe2\x94\x82 \xe2\x97\x8b 5 add another e (esc) 2444 \xe2\x94\x82 \xe2\x97\x8b 5 add another e (esc)
2445 \xe2\x94\x82 \xe2\x94\x82 (esc) 2445 \xe2\x94\x82 \xe2\x94\x82 (esc)
2446 \xe2\x97\x8b \xe2\x94\x82 4 mv dir/b e (esc) 2446 \xe2\x97\x8b \xe2\x94\x82 4 mv dir/b e (esc)
2447 \xe2\x94\x82\xe2\x95\xb1 (esc) 2447 \xe2\x94\x82\xe2\x95\xb1 (esc)
2448 \xe2\x97\x8d 3 mv a b; add d (esc) 2448 \xe2\x97\x89 3 mv a b; add d (esc)
2449 \xe2\x94\x82 (esc) 2449 \xe2\x94\x82 (esc)
2450 \xe2\x97\x8b 2 mv b dir/b (esc) 2450 \xe2\x97\x8b 2 mv b dir/b (esc)
2451 \xe2\x94\x82 (esc) 2451 \xe2\x94\x82 (esc)
2452 \xe2\x97\x8b 1 copy a b (esc) 2452 \xe2\x97\x8b 1 copy a b (esc)
2453 \xe2\x94\x82 (esc) 2453 \xe2\x94\x82 (esc)
2526 working-directory revision 2526 working-directory revision
2527 2527
2528 $ hg log -G -qr '. + wdir()' 2528 $ hg log -G -qr '. + wdir()'
2529 \xe2\x97\x8b 2147483647:ffffffffffff (esc) 2529 \xe2\x97\x8b 2147483647:ffffffffffff (esc)
2530 \xe2\x94\x82 (esc) 2530 \xe2\x94\x82 (esc)
2531 \xe2\x97\x8d 3:5918b8d165d1 (esc) 2531 \xe2\x97\x89 3:5918b8d165d1 (esc)
2532 \xe2\x94\x82 (esc) 2532 \xe2\x94\x82 (esc)
2533 \xe2\x95\xa7 (esc) 2533 \xe2\x95\xa7 (esc)
2534 2534
2535 node template with changesetprinter: 2535 node template with changesetprinter:
2536 2536
2774 | | | | | 2774 | | | | |
2775 2775
2776 .. unless HGPLAINEXCEPT=graph is set: 2776 .. unless HGPLAINEXCEPT=graph is set:
2777 2777
2778 $ HGPLAIN=1 HGPLAINEXCEPT=graph hg log -G -r 'file("a")' -m 2778 $ HGPLAIN=1 HGPLAINEXCEPT=graph hg log -G -r 'file("a")' -m
2779 \xe2\x97\x8d changeset: 36:08a19a744424 (esc) 2779 \xe2\x97\x89 changeset: 36:08a19a744424 (esc)
2780 \xe2\x94\x86 branch: branch (esc) 2780 \xe2\x94\x86 branch: branch (esc)
2781 \xe2\x94\x86 tag: tip (esc) 2781 \xe2\x94\x86 tag: tip (esc)
2782 \xe2\x94\x86 parent: 35:9159c3644c5e (esc) 2782 \xe2\x94\x86 parent: 35:9159c3644c5e (esc)
2783 \xe2\x94\x86 parent: 35:9159c3644c5e (esc) 2783 \xe2\x94\x86 parent: 35:9159c3644c5e (esc)
2784 \xe2\x94\x86 user: test (esc) 2784 \xe2\x94\x86 user: test (esc)
3049 $ hg merge -r 3 3049 $ hg merge -r 3
3050 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 3050 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
3051 (branch merge, don't forget to commit) 3051 (branch merge, don't forget to commit)
3052 $ hg ci -qm 6 3052 $ hg ci -qm 6
3053 $ hg log -G -r '0 | 1 | 2 | 6' 3053 $ hg log -G -r '0 | 1 | 2 | 6'
3054 \xe2\x97\x8d changeset: 6:851fe89689ad (esc) 3054 \xe2\x97\x89 changeset: 6:851fe89689ad (esc)
3055 \xe2\x94\x86\xe2\x95\xb2 tag: tip (esc) 3055 \xe2\x94\x86\xe2\x95\xb2 tag: tip (esc)
3056 \xe2\x94\x86 \xe2\x94\x86 parent: 5:4f1e3cf15f5d (esc) 3056 \xe2\x94\x86 \xe2\x94\x86 parent: 5:4f1e3cf15f5d (esc)
3057 \xe2\x94\x86 \xe2\x94\x86 parent: 3:b74ba7084d2d (esc) 3057 \xe2\x94\x86 \xe2\x94\x86 parent: 3:b74ba7084d2d (esc)
3058 \xe2\x94\x86 \xe2\x94\x86 user: test (esc) 3058 \xe2\x94\x86 \xe2\x94\x86 user: test (esc)
3059 \xe2\x94\x86 \xe2\x94\x86 date: Thu Jan 01 00:00:00 1970 +0000 (esc) 3059 \xe2\x94\x86 \xe2\x94\x86 date: Thu Jan 01 00:00:00 1970 +0000 (esc)
3093 $ hg co -q null 3093 $ hg co -q null
3094 $ touch bar 3094 $ touch bar
3095 $ hg ci -Aqm bar 3095 $ hg ci -Aqm bar
3096 3096
3097 $ hg log -Gr null: 3097 $ hg log -Gr null:
3098 \xe2\x97\x8d 1 bar (esc) 3098 \xe2\x97\x89 1 bar (esc)
3099 \xe2\x94\x82 (esc) 3099 \xe2\x94\x82 (esc)
3100 \xe2\x94\x82 \xe2\x97\x8b 0 foo (esc) 3100 \xe2\x94\x82 \xe2\x97\x8b 0 foo (esc)
3101 \xe2\x94\x82\xe2\x95\xb1 (esc) 3101 \xe2\x94\x82\xe2\x95\xb1 (esc)
3102 \xe2\x97\x8b -1 (esc) 3102 \xe2\x97\x8b -1 (esc)
3103 3103
3105 \xe2\x97\x8b 0 foo (esc) 3105 \xe2\x97\x8b 0 foo (esc)
3106 \xe2\x94\x82 (esc) 3106 \xe2\x94\x82 (esc)
3107 \xe2\x97\x8b -1 (esc) 3107 \xe2\x97\x8b -1 (esc)
3108 3108
3109 $ hg log -Gr null+1 3109 $ hg log -Gr null+1
3110 \xe2\x97\x8d 1 bar (esc) 3110 \xe2\x97\x89 1 bar (esc)
3111 \xe2\x94\x82 (esc) 3111 \xe2\x94\x82 (esc)
3112 \xe2\x97\x8b -1 (esc) 3112 \xe2\x97\x8b -1 (esc)
3113 3113
3114 3114
3115 $ cd .. 3115 $ cd ..