[PATCH 5 of 8] shelve: remove unused status variables

Martin von Zweigbergk martinvonz at gmail.com
Wed Oct 1 19:01:57 CDT 2014


# HG changeset patch
# User Martin von Zweigbergk <martinvonz at gmail.com>
# Date 1411604337 25200
#      Wed Sep 24 17:18:57 2014 -0700
# Node ID 31cbb21f1283847c65e385bd94b81e2c78fd5121
# Parent  e78e91806185683b1bc8814556a71bf66abcd7a1
shelve: remove unused status variables

diff --git a/hgext/shelve.py b/hgext/shelve.py
--- a/hgext/shelve.py
+++ b/hgext/shelve.py
@@ -401,8 +401,7 @@
         files.extend(shelvectx.parents()[0].files())
 
         # revert will overwrite unknown files, so move them out of the way
-        m, a, r, d, u = repo.status(unknown=True)[:5]
-        for file in u:
+        for file in repo.status(unknown=True)[4]:
             if file in files:
                 util.rename(file, file + ".orig")
         ui.pushbuffer(True)


More information about the Mercurial-devel mailing list