obslog: spell out successor completely
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 09 Oct 2017 19:35:32 +0530
changeset 3054 bc890c6c9b2f
parent 3042 93ea1d9d6ad3
child 3055 774b4ea6ca58
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.
hgext3rd/evolve/obshistory.py
tests/test-evolve-obshistory.t
--- 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()
--- 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)