[PATCH 2 of 3] mq: move expansion to string definition

timeless timeless at gmail.com
Tue Oct 26 06:52:21 CDT 2010


# HG changeset patch
# User timeless <timeless at gmail.com>
# Date 1288093318 -10800
# Node ID 5b2120b8d548e444d241467c799304dcebc79c4f
# Parent  86c23961ffe55f32dc1e4edb2c3ed4f43741b728
mq: move expansion to string definition

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -741,8 +741,9 @@ class queue(object):
             patch = self.applied[i].name
             for fmt in ('[mq]: %s', 'imported patch %s'):
                 if ctx.description() == fmt % patch:
-                    msg = _('patch %s finalized without changeset message\n')
-                    repo.ui.status(msg % patch)
+                    msg = (_('patch %s finalized without changeset message\n')
+                           % patch)
+                    repo.ui.status(msg)
                     break
 
             patches.append(patch)


More information about the Mercurial-devel mailing list