[PATCH 2 of 6] remove unused variables

timeless timeless at gmail.com
Sun May 1 14:16:34 CDT 2011


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1304263240 -7200
# Node ID 52692bd2c323af04f95cabf0e8dbc5a23d42eca9
# Parent  fd848660e6e7530efaada4860638b99b9467240a
remove unused variables

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -2987,7 +2987,7 @@ def reposetup(ui, repo):
             mqtags = [(patch.node, patch.name) for patch in q.applied]
 
             try:
-                r = self.changelog.rev(mqtags[-1][0])
+                self.changelog.rev(mqtags[-1][0])
             except error.RepoLookupError:
                 self.ui.warn(_('mq status file refers to unknown node %s\n')
                              % short(mqtags[-1][0]))
diff --git a/hgext/progress.py b/hgext/progress.py
--- a/hgext/progress.py
+++ b/hgext/progress.py
@@ -238,7 +238,7 @@ class progbar(object):
             self.topicstates[topic] = pos, item, unit, total
             if now - self.lastprint >= self.refresh and self.topics:
                 self.lastprint = now
-                current = self.topics[-1]
+                self.topics[-1]
                 self.show(now, topic, *self.topicstates[topic])
 
 def uisetup(ui):


More information about the Mercurial-devel mailing list