Incoming and outgoing hang for a long time when used under bash

Issue #20 new
created an issue

To reproduce, set bash to use hg prompt with {incoming} or {outgoing} in PS1, then cd to a repo and remove .hg/prompt/cache/. Even though hg prompt has returned, bash waits for hg prompt --cache- to return. This seems to be because the stdout file handle is still open.

I've attached a patch that resolves this issue (but I'm not sure if this is quite intended behaviour for other situations).

Comments (0)

  1. Log in to comment