Patchwork [3,of,3,stable] util, i18n: add hint to digest mismatch message

login
register
mail settings
Submitter Wagner Bruna
Date Oct. 23, 2014, 3:17 p.m.
Message ID <e1812daaf18723738d24.1414077439@mwagner.paulista.local>
Download mbox | patch
Permalink /patch/6447/
State Accepted
Headers show

Comments

Wagner Bruna - Oct. 23, 2014, 3:17 p.m.
# HG changeset patch
# User Wagner Bruna <wbruna@softwareexpress.com.br>
# Date 1414074910 7200
#      Thu Oct 23 12:35:10 2014 -0200
# Branch stable
# Node ID e1812daaf18723738d242cac7a21405f4c958978
# Parent  52449779cbe091da81a266dbb8823ad5c17054bf
util, i18n: add hint to digest mismatch message
Matt Mackall - Oct. 23, 2014, 4:54 p.m.
On Thu, 2014-10-23 at 13:17 -0200, Wagner Bruna wrote:
> # HG changeset patch
> # User Wagner Bruna <wbruna@softwareexpress.com.br>
> # Date 1414074910 7200
> #      Thu Oct 23 12:35:10 2014 -0200
> # Branch stable
> # Node ID e1812daaf18723738d242cac7a21405f4c958978
> # Parent  52449779cbe091da81a266dbb8823ad5c17054bf
> util, i18n: add hint to digest mismatch message

These are queued, thanks. contrib/check-commit complained about having
two keywords here.

Patch

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -211,6 +211,7 @@  class digestchecker(object):
                 (self._size, self._got))
         for k, v in self._digests.items():
             if v != self._digester[k]:
+                # i18n: first parameter is a digest name
                 raise Abort(_('%s mismatch: expected %s, got %s') %
                     (k, v, self._digester[k]))