From: William Morgan Date: Mon, 17 Aug 2009 19:24:26 +0000 (-0400) Subject: Merge branch 'logging' into next X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=631981cbbb728c0bfd62d91a89129169a8a6d2e1;p=sup Merge branch 'logging' into next Conflicts: bin/sup bin/sup-sync-back bin/sup-tweak-labels lib/sup.rb lib/sup/buffer.rb lib/sup/message-chunks.rb lib/sup/suicide.rb --- 631981cbbb728c0bfd62d91a89129169a8a6d2e1 diff --cc bin/sup index a9f0b95,155bb65..5d651be --- a/bin/sup +++ b/bin/sup @@@ -129,8 -129,32 +129,8 @@@ def stop_cursin end module_function :start_cursing, :stop_cursing - Index.new + Index.init -begin - Index.lock -rescue Index::LockError => e - require 'highline' - - h = HighLine.new - h.wrap_at = :auto - h.say Index.fancy_lock_error_message_for(e) - - case h.ask("Should I ask that process to kill itself? ") - when /^\s*y(es)?\s*$/i - h.say "Ok, suggesting seppuku..." - FileUtils.touch Redwood::SUICIDE_FN - sleep SuicideManager::DELAY * 2 - FileUtils.rm_f Redwood::SUICIDE_FN - h.say "Let's try that again." - retry - else - h.say < e - $stderr.puts fancy_lock_error_message_for(e) - $stderr.puts <