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

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Thu May 8 18:47:52 CDT 2014


# HG changeset patch
# User FUJIWARA Katsunori <foozy at 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.

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:


More information about the Mercurial-devel mailing list