summaryrefslogtreecommitdiff
path: root/hg.rb
diff options
context:
space:
mode:
Diffstat (limited to 'hg.rb')
-rw-r--r--hg.rb2
1 files changed, 1 insertions, 1 deletions
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