Patchwork [2,of,3] revlog: remove unused variables

login
register
mail settings
Submitter Gregory Szorc
Date Aug. 23, 2016, 4:50 a.m.
Message ID <c49d98dbf6319b14162c.1471927820@ubuntu-vm-main>
Download mbox | patch
Permalink /patch/16390/
State Accepted
Headers show

Comments

Gregory Szorc - Aug. 23, 2016, 4:50 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1471922256 25200
#      Mon Aug 22 20:17:36 2016 -0700
# Node ID c49d98dbf6319b14162c3a4126a2a1757927e982
# Parent  93a0220d9982345a030fe9a5b954beaeded51aad
revlog: remove unused variables

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -1441,17 +1441,16 @@  class revlog(object):
                 base = chainbase
             chainlen, compresseddeltalen = self._chaininfo(rev)
             chainlen += 1
             compresseddeltalen += l
             return dist, l, data, base, chainbase, chainlen, compresseddeltalen
 
         curr = len(self)
         prev = curr - 1
-        base = chainbase = curr
         offset = self.end(prev)
         delta = None
         if self._basecache is None:
             self._basecache = (prev, self.chainbase(prev))
         basecache = self._basecache
         p1r, p2r = self.rev(p1), self.rev(p2)
 
         # full versions are inserted when the needed deltas