[PATCH 1 of 2 RFC] mq: clean up unused variable in qrefresh
Kevin Bullock
kbullock+mercurial at ringworld.org
Tue Nov 16 13:13:30 CST 2010
# HG changeset patch
# User Kevin Bullock <kbullock at ringworld.org>
# Date 1289934364 21600
# Node ID 742ab7cea58e8ca3aaea5d5d4b4fa0e252f9389e
# Parent cc4e13c92dfa441c735e3b383fa6ac6c071884ae
mq: clean up unused variable in qrefresh
Removes the unused variable `aa2` that holds the list of deleted files
returned from repo.status().
diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -1270,10 +1270,10 @@
# and then commit.
#
# this should really read:
- # mm, dd, aa, aa2 = repo.status(tip, patchparent)[:4]
+ # mm, dd, aa = repo.status(top, patchparent)[:4]
# but we do it backwards to take advantage of manifest/chlog
# caching against the next repo.status call
- mm, aa, dd, aa2 = repo.status(patchparent, top)[:4]
+ mm, aa, dd = repo.status(patchparent, top)[:3]
changes = repo.changelog.read(top)
man = repo.manifest.read(changes[0])
aaa = aa[:]
More information about the Mercurial-devel
mailing list