# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1507557932 -19800 # Node ID bc890c6c9b2fd7286137ac7561ae43b041e61c01 # Parent 93ea1d9d6ad3626e4c3e17465e72552b302ca465 obslog: spell out successor completely If the successor is not known locally, obslog says `succ is unknown locally` which is not a good message. This patch makes sure succ is spelled out completely as successor. diff -r 93ea1d9d6ad3 -r bc890c6c9b2f hgext3rd/evolve/obshistory.py --- a/hgext3rd/evolve/obshistory.py Thu Sep 28 21:35:29 2017 +0100 +++ b/hgext3rd/evolve/obshistory.py Mon Oct 09 19:35:32 2017 +0530 @@ -132,7 +132,7 @@ succ = successors[0] if succ not in repo: - return False, "succ is unknown locally" + return False, "successor is unknown locally" # Check that both node and succ have the same parents nodep1, nodep2 = repo[node].p1(), repo[node].p2() diff -r 93ea1d9d6ad3 -r bc890c6c9b2f tests/test-evolve-obshistory.t --- a/tests/test-evolve-obshistory.t Thu Sep 28 21:35:29 2017 +0100 +++ b/tests/test-evolve-obshistory.t Mon Oct 09 19:35:32 2017 +0530 @@ -1638,7 +1638,7 @@ | @ 471f378eab4c (1) A0 rewritten(description) as fdf9bde5129a by test (*) (glob) - (No patch available yet, succ is unknown locally) + (No patch available yet, successor is unknown locally) $ hg obslog 7a230b46bf61 --color=debug --patch o [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2] @@ -1649,5 +1649,5 @@ | @ [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0] [evolve.verb|rewritten](description) as [evolve.node|fdf9bde5129a] by [evolve.user|test] [evolve.date|(*)] (glob) - (No patch available yet, succ is unknown locally) + (No patch available yet, successor is unknown locally)