Patchwork D7880: lfs: rename a variable to clarify its use

login
register
mail settings
Submitter phabricator
Date Jan. 15, 2020, 1:17 p.m.
Message ID <319f2acc18193cf9fa3443156a943e05@localhost.localdomain>
Download mbox | patch
Permalink /patch/44362/
State Not Applicable
Headers show

Comments

phabricator - Jan. 15, 2020, 1:17 p.m.
Closed by commit rHG84f2becbd106: lfs: rename a variable to clarify its use (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7880?vs=19279&id=19290

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7880/new/

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

AFFECTED FILES
  hgext/lfs/blobstore.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/hgext/lfs/blobstore.py b/hgext/lfs/blobstore.py
--- a/hgext/lfs/blobstore.py
+++ b/hgext/lfs/blobstore.py
@@ -491,22 +491,22 @@ 
 
         response = b''
         try:
-            with contextlib.closing(self.urlopener.open(request)) as req:
+            with contextlib.closing(self.urlopener.open(request)) as res:
                 ui = self.ui  # Shorten debug lines
                 if self.ui.debugflag:
-                    ui.debug(b'Status: %d\n' % req.status)
+                    ui.debug(b'Status: %d\n' % res.status)
                     # lfs-test-server and hg serve return headers in different
                     # order
-                    headers = pycompat.bytestr(req.info()).strip()
+                    headers = pycompat.bytestr(res.info()).strip()
                     ui.debug(b'%s\n' % b'\n'.join(sorted(headers.splitlines())))
 
                 if action == b'download':
                     # If downloading blobs, store downloaded data to local
                     # blobstore
-                    localstore.download(oid, req)
+                    localstore.download(oid, res)
                 else:
                     while True:
-                        data = req.read(1048576)
+                        data = res.read(1048576)
                         if not data:
                             break
                         response += data