Patchwork [1,of,3] filelog: remove unused variable 'lkr'

login
register
mail settings
Submitter Martin von Zweigbergk
Date Jan. 12, 2015, 7:12 p.m.
Message ID <2628aedc614c41d9c2a5.1421089972@martinvonz.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/7435/
State Accepted
Commit bbd7f947974d6e84bec7f7fff020a888dc59a8a9
Headers show

Comments

Martin von Zweigbergk - Jan. 12, 2015, 7:12 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 1421084885 28800
#      Mon Jan 12 09:48:05 2015 -0800
# Node ID 2628aedc614c41d9c2a5a3cac485df34dc3fde78
# Parent  678f53865c6860a950392691814766957ee89316
filelog: remove unused variable 'lkr'

It's used further down, but it's overwritten before, so it's
technically a dead assignment, but unnecessary nevertheless.

Patch

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -805,7 +805,7 @@ 
         lowesthead = None # cache for manifest content of all head revisions
         fl = repo.file(f)
         for fr in list(fl):
-            lkr = rev = fl.linkrev(fr)
+            rev = fl.linkrev(fr)
             if rev not in cl:
                 # changerev pointed in linkrev is filtered
                 # record it for post processing.