test: add a test for current behavior of precursors revset draft
authorBoris Feld <boris.feld@octobus.net>
Mon, 15 Jan 2018 17:46:40 +0100
changeset 5217 64d7e9a5a9af
parent 3389 eacf6149b678
test: add a test for current behavior of precursors revset The precursors revset currently returns the closest predecessors of a revset. If these predecessors are not known locally, it returns an empty list.
tests/test-evolve-obshistory.t
--- a/tests/test-evolve-obshistory.t	Tue Jan 09 20:01:50 2018 +0530
+++ b/tests/test-evolve-obshistory.t	Mon Jan 15 17:46:40 2018 +0100
@@ -1653,6 +1653,9 @@
        rewritten(description) as fdf9bde5129a by test (*) (glob)
          (No patch available, successor is unknown locally)
   
+
+  $ hg log -G -r "precursors(7a230b46bf61)"
+
   $ hg obslog 7a230b46bf61 --color=debug --patch
   o  [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2]
   |