Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hg status subprocess occasionally has returncode == 0 in non-mercurial checkouts #8

Open
rpatterson opened this issue Mar 30, 2014 · 1 comment

Comments

@rpatterson
Copy link

Intermittently and rarely the mercurial repository check subprocess reports a successful returncode of 0 in a non-mercurial checkout.

I confirmed this by running:

self.process.popen('hg status', echo=False, echo2=False)

...repeatedly and found that 1 out of every 10-20 returned (0, []). I confirmed that this doesn't seem to be a problem with the actual hg status command by running:

while [1] ; do hg status && echo XXX ; done

...which never printed XXX.

So maybe there's a rare bug in the subprocess handling?

@stefanholek
Copy link
Member

Hm, you on Python 2? On Mac?

Maybe this fix applied for 3.2+ compatibility broke lesser Pythons: 0f0a9c3

Mercurial is a very "slow" subprocess compared to the pure C git and svn, and poll() from bg thread has stopped working in 3.2...

Could you perhaps revert that commit in your env and try to reproduce the errors? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants