Patchwork D1986: wireprotoserver: remove lock references

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

Comments

phabricator - Feb. 1, 2018, 11:32 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6edb973da584: wireprotoserver: remove lock references (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1986?vs=5109&id=5124

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

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
@@ -250,7 +250,6 @@ 
     def __init__(self, ui, repo):
         self.ui = ui
         self.repo = repo
-        self.lock = None
         self.fin = ui.fin
         self.fout = ui.fout
         self.name = 'ssh'
@@ -321,12 +320,8 @@ 
         self.fout.flush()
 
     def serve_forever(self):
-        try:
-            while self.serve_one():
-                pass
-        finally:
-            if self.lock is not None:
-                self.lock.release()
+        while self.serve_one():
+            pass
         sys.exit(0)
 
     handlers = {