Commit 2d56d054 authored by Anton Shestakov's avatar Anton Shestakov
Browse files

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.
parent dad6bd8180d3
......@@ -1149,14 +1149,14 @@ Testing case when resolution parent is ambiguous (MultipleSuccessorsError)
o 0:bde1d2b6b5e5 added base
() [default] draft
$ hg reb -r 10 -d 7
$ hg rebase -r 10 -d 7
rebasing 10:9a1f460df8b5 "added dar"
$ hg up 0 -q
$ echo alpha > alpha
$ hg ci -Am "added alpha"
adding alpha
created new head
$ hg reb -r 6 -d 'desc("added alpha")'
$ hg rebase -r 6 -d 'desc("added alpha")'
rebasing 6:57a3f8edf065 "added dar"
$ hg evolve --content-divergent
skipping 8b68d5104188: have a different parent than cf9a46e19942 (not handled yet)
......@@ -473,7 +473,7 @@ affected by the evolved changeset (nor was 'a')
$ echo 2b > a
$ hg amend -q
1 new orphan changesets
$ hg ev -q
$ hg evolve -q
warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
unresolved merge conflicts
(see 'hg help evolve.interrupted')
......@@ -155,7 +155,7 @@ casually checking issue6141: position of p2 is not changed
test that we successfully got rid of the bad file
$ hg d --git -r 'predecessors(.)' -r '.'
$ hg diff --git -r 'predecessors(.)' -r '.'
diff --git a/a_bad_commit b/a_bad_commit
deleted file mode 100644
--- a/a_bad_commit
......@@ -229,7 +229,7 @@ next with ambiguity
next with ambiguity in aspiring children
$ hg am -m 'added b (3)'
$ hg amend -m 'added b (3)'
2 new orphan changesets
$ hg next --no-evolve
no children
......@@ -17,7 +17,7 @@ Creating a server repo
$ hg topic server
marked working directory as topic: server
$ for ch in a b c; do echo foo > $ch; hg ci -Aqm "Added "$ch; done
$ hg ph -p 0
$ hg phase -p 0
$ hg log -G -T "{rev}:{node|short}\n{desc} {topics}"
@ 2:a7b96f87a214
......@@ -105,7 +105,7 @@ Prepare complicated changeset
R g
R m
R n
$ hg man -r .
$ hg manifest -r .
......@@ -203,7 +203,7 @@ Enjoy uncommit
M d
A e
R n
$ hg man -r .
$ hg manifest -r .
......@@ -51,7 +51,7 @@ with one successor.
o 0:135f39f4bd78@default(draft) add _a
$ hg evo --all --any --orphan
$ hg evolve --all --any --orphan
move:[2] add _c
atop:[3] bprime
$ hg log -G
......@@ -102,7 +102,7 @@ with multiple successors on the same branch but in reverse order (cross-split).
o 0:135f39f4bd78@default(draft) add _a
$ hg evo --all --any --orphan
$ hg evolve --all --any --orphan
move:[2] add _c
atop:[6] add bsecondsplit2
$ hg log -G
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment