Patchwork D5383: remotefilelog: remove an unnecessary update of "count" container

login
register
mail settings
Submitter phabricator
Date Dec. 6, 2018, 11:41 a.m.
Message ID <5e0d704b12abe3f2139afbb13b4e3ebc@localhost.localdomain>
Download mbox | patch
Permalink /patch/37013/
State Not Applicable
Headers show

Comments

phabricator - Dec. 6, 2018, 11:41 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG70de33b9d328: remotefilelog: remove an unnecessary update of &quot;count&quot; container (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5383?vs=12722&id=12744

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

AFFECTED FILES
  hgext/remotefilelog/fileserverclient.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/remotefilelog/fileserverclient.py b/hgext/remotefilelog/fileserverclient.py
--- a/hgext/remotefilelog/fileserverclient.py
+++ b/hgext/remotefilelog/fileserverclient.py
@@ -422,8 +422,7 @@ 
                 finally:
                     self.ui.verbose = verbose
                 # send to memcache
-                count[0] = len(missed)
-                request = "set\n%d\n%s\n" % (count[0], "\n".join(missed))
+                request = "set\n%d\n%s\n" % (len(missed), "\n".join(missed))
                 cache.request(request)
 
             progress.complete()