summaryrefslogtreecommitdiff
path: root/hg.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-07-04 13:34:52 +0200
committerPatrick Simianer <p@simianer.de>2014-07-04 13:34:52 +0200
commita3f9fb73ffe4f942851ff496a72ca2445ffd9e0a (patch)
treeb0dc8837f4339710461c021bf8e6856c40a40347 /hg.rb
parente06dbc7fc9b7c24a7d66c4578f56e1596188abf8 (diff)
fix
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