···5252 safe_jj (fun () ->
5353 let rev = Vars.get_hovered_rev () in
5454 let branches =
5555- jj_no_log ~snapshot:cause_snapshot [ "branch"; "list"; "-a" ] |> colored_string
5555+ jj_no_log ~snapshot:cause_snapshot [ "bookmark"; "list"; "-a" ] |> colored_string
5656 in
5757 (* From now on we use ignore-working-copy so we don't re-snapshot the state and so
5858 we can operate in paralell *)
+4-3
jj_tui/bin/jj_process.ml
···222222 ])
223223 with
224224 | Picos_std_structured.Control.Terminate as e ->
225225- [%log debug "Terminated command: %s" (args |> String.concat " ")];
226226- if locked then Mutex.unlock access_lock;
227227- raise e
225225+ Control.protect (fun () ->
226226+ if locked then Mutex.unlock access_lock;
227227+ [%log debug "Terminated command: %s" (args |> String.concat " ")];
228228+ raise e)
228229 | e ->
229230 [%log warn "Exception running jj: %s" (Printexc.to_string e)];
230231 Error (`Exception (Printexc.to_string e))