Patchwork [3,of,3] hghave: enable 'serve' on Windows

login
register
mail settings
Submitter Matt Harbison
Date May 15, 2017, 4:08 a.m.
Message ID <52bd07e96463c99e7822.1494821312@Envy>
Download mbox | patch
Permalink /patch/20624/
State Changes Requested
Delegated to: Yuya Nishihara
Headers show

Comments

Matt Harbison - May 15, 2017, 4:08 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1494808536 14400
#      Sun May 14 20:35:36 2017 -0400
# Node ID 52bd07e96463c99e7822b4b79a0ad1dcd3effbbc
# Parent  809709930080937b6b56e5cad285798f29a10280
hghave: enable 'serve' on Windows

I've been using a local hghaveaddon.py to enable this for a couple of months
with reasonable success, and 'killdaemons' is already enabled on Windows.

Patch

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -502,7 +502,7 @@ 
 
 @check("serve", "platform and python can manage 'hg serve -d'")
 def has_serve():
-    return os.name != 'nt' # gross approximation
+    return True
 
 @check("test-repo", "running tests from repository")
 def has_test_repo():