diff options
Diffstat (limited to 'dev-vcs/mercurial/files/mercurial-5.8.1-testing-timeout.patch')
-rw-r--r-- | dev-vcs/mercurial/files/mercurial-5.8.1-testing-timeout.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-vcs/mercurial/files/mercurial-5.8.1-testing-timeout.patch b/dev-vcs/mercurial/files/mercurial-5.8.1-testing-timeout.patch new file mode 100644 index 000000000000..5c68835ccf75 --- /dev/null +++ b/dev-vcs/mercurial/files/mercurial-5.8.1-testing-timeout.patch @@ -0,0 +1,12 @@ +diff --git a/mercurial/testing/__init__.py b/mercurial/testing/__init__.py +--- a/mercurial/testing/__init__.py ++++ b/mercurial/testing/__init__.py +@@ -25,7 +25,7 @@ def wait_file(path, timeout=10): + timeout *= _timeout_factor() + start = time.time() + while not os.path.exists(path): +- if time.time() - start > timeout: ++ if timeout and time.time() - start > timeout: + raise RuntimeError(b"timed out waiting for file: %s" % path) + time.sleep(0.01) + |