Patchwork [5,of,8] shelve: remove unused status variables

login
register
mail settings
Submitter Martin von Zweigbergk
Date Oct. 2, 2014, 12:01 a.m.
Message ID <31cbb21f1283847c65e3.1412208117@handduk2.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/6075/
State Accepted
Headers show

Comments

Martin von Zweigbergk - Oct. 2, 2014, 12:01 a.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@gmail.com>
# Date 1411604337 25200
#      Wed Sep 24 17:18:57 2014 -0700
# Node ID 31cbb21f1283847c65e385bd94b81e2c78fd5121
# Parent  e78e91806185683b1bc8814556a71bf66abcd7a1
shelve: remove unused status variables
Matt Mackall - Oct. 2, 2014, 11:57 p.m.
On Wed, 2014-10-01 at 17:01 -0700, Martin von Zweigbergk wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz@gmail.com>
> # Date 1411604337 25200
> #      Wed Sep 24 17:18:57 2014 -0700
> # Node ID 31cbb21f1283847c65e385bd94b81e2c78fd5121
> # Parent  e78e91806185683b1bc8814556a71bf66abcd7a1
> shelve: remove unused status variables

2, 4, and 5 queued, thanks.

Patch

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)