From a3f9fb73ffe4f942851ff496a72ca2445ffd9e0a Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Fri, 4 Jul 2014 13:34:52 +0200 Subject: fix --- hg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hg.rb') diff --git a/hg.rb b/hg.rb index 1f17a66..238607f 100644 --- a/hg.rb +++ b/hg.rb @@ -101,7 +101,7 @@ def HG::topological_sort nodes sorted.last.outgoing.each { |e| next if e.marked? e.mark += 1 - s << e.head if e.head.incoming.reject{ |f| f.mark==f.arity }.empty? + s << e.head if e.head.incoming.reject{ |f| f.marked? }.empty? } end return sorted -- cgit v1.2.3