comparison tests/test-topic-flow-reject-untopiced.t @ 5962:b68789e8c535

tests: spell out hg commands for readability These are the abbreviations that are used just in a couple of places in the tests. `hg d` is in my opinion an abbreviation of core command that everyone should know, but I'd rather not use "unofficial" abbreviations in tests because it takes a second to mentally expand what the command is when you're reading it. In CLI when you type commands, it makes sense to abbreviate things to type less. But tests are read much more often than they are written, so I'd like to apply the same guidelines to them as to regular code: readability first. Apart from readability, it's also consistency, because these particular abbreviations are rare, and everywhere else the commands are spelled out.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 17 Jun 2021 11:08:01 +0300
parents a8ff17479fb8
children df773a9bed0c 0592ae24c470
comparison
equal deleted inserted replaced
5961:dad6bd8180d3 5962:b68789e8c535
15 > EOF 15 > EOF
16 16
17 $ hg topic server 17 $ hg topic server
18 marked working directory as topic: server 18 marked working directory as topic: server
19 $ for ch in a b c; do echo foo > $ch; hg ci -Aqm "Added "$ch; done 19 $ for ch in a b c; do echo foo > $ch; hg ci -Aqm "Added "$ch; done
20 $ hg ph -p 0 20 $ hg phase -p 0
21 21
22 $ hg log -G -T "{rev}:{node|short}\n{desc} {topics}" 22 $ hg log -G -T "{rev}:{node|short}\n{desc} {topics}"
23 @ 2:a7b96f87a214 23 @ 2:a7b96f87a214
24 | Added c server 24 | Added c server
25 o 1:d6a8197e192a 25 o 1:d6a8197e192a