Patchwork D1967: wireprotoserver: don't import symbol from hgweb.common

login
register
mail settings
Submitter phabricator
Date Feb. 1, 2018, 10:56 p.m.
Message ID <c13ce92b66b5ad812aadd72e2d9a07c6@localhost.localdomain>
Download mbox | patch
Permalink /patch/27160/
State Not Applicable
Headers show

Comments

phabricator - Feb. 1, 2018, 10:56 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa3a1ffcf5f8c: wireprotoserver: don&#039;t import symbol from hgweb.common (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1967?vs=5047&id=5092

REVISION DETAIL
  https://phab.mercurial-scm.org/D1967

AFFECTED FILES
  mercurial/wireprotoserver.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py
--- a/mercurial/wireprotoserver.py
+++ b/mercurial/wireprotoserver.py
@@ -9,9 +9,6 @@ 
 import cgi
 import struct
 
-from .hgweb.common import (
-    HTTP_OK,
-)
 from . import (
     error,
     pycompat,
@@ -24,6 +21,8 @@ 
 urlerr = util.urlerr
 urlreq = util.urlreq
 
+HTTP_OK = 200
+
 HGTYPE = 'application/mercurial-0.1'
 HGTYPE2 = 'application/mercurial-0.2'
 HGERRTYPE = 'application/hg-error'