Patchwork [1,of,2] mq: eliminate unused variable for test-check-pyflakes.t

login
register
mail settings
Submitter Katsunori FUJIWARA
Date May 8, 2014, 11:47 p.m.
Message ID <48f9d5939b8ea2c5ee21.1399592872@juju>
Download mbox | patch
Permalink /patch/4676/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - May 8, 2014, 11:47 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1399592693 -32400
#      Fri May 09 08:44:53 2014 +0900
# Node ID 48f9d5939b8ea2c5ee21facae4efe24a572df65c
# Parent  62a2749895e4151f766a4243fa870b1ddd7386d0
mq: eliminate unused variable for test-check-pyflakes.t

"user" in "fold()" has become useless since 49148d7868df.

Patch

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -2581,7 +2581,7 @@  def fold(ui, repo, *files, **opts):
 
     if not message:
         ph = patchheader(q.join(parent), q.plainmode)
-        message, user = ph.message, ph.user
+        message = ph.message
         for msg in messages:
             if msg:
                 if message: