Patchwork bundle2: reword debug message for invalid .hgtags data

login
register
mail settings
Submitter Gregory Szorc
Date June 21, 2015, 1:03 a.m.
Message ID <da1642f7520fe9a570e2.1434848623@gps-mbp.local>
Download mbox | patch
Permalink /patch/9734/
State Accepted
Headers show

Comments

Gregory Szorc - June 21, 2015, 1:03 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1434848618 25200
#      Sat Jun 20 18:03:38 2015 -0700
# Node ID da1642f7520fe9a570e2767d24faa4f0ead1ef39
# Parent  7fdd1782fc4ee9da87d8af13e806dc9055db2c38
bundle2: reword debug message for invalid .hgtags data

marmoute requested a follow-up to make the verb the first word.
Augie Fackler - June 22, 2015, 2:20 p.m.
On Sat, Jun 20, 2015 at 06:03:43PM -0700, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc@gmail.com>
> # Date 1434848618 25200
> #      Sat Jun 20 18:03:38 2015 -0700
> # Node ID da1642f7520fe9a570e2767d24faa4f0ead1ef39
> # Parent  7fdd1782fc4ee9da87d8af13e806dc9055db2c38
> bundle2: reword debug message for invalid .hgtags data

Queued, thanks.

>
> marmoute requested a follow-up to make the verb the first word.
>
> diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
> --- a/mercurial/bundle2.py
> +++ b/mercurial/bundle2.py
> @@ -1400,9 +1400,9 @@ def handlehgtagsfnodes(op, inpart):
>      while True:
>          node = inpart.read(20)
>          fnode = inpart.read(20)
>          if len(node) < 20 or len(fnode) < 20:
> -            op.ui.debug('received incomplete .hgtags fnodes data, ignoring\n')
> +            op.ui.debug('ignoring incomplete received .hgtags fnodes data\n')
>              break
>          cache.setfnode(node, fnode)
>          count += 1
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> https://selenic.com/mailman/listinfo/mercurial-devel

Patch

diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -1400,9 +1400,9 @@  def handlehgtagsfnodes(op, inpart):
     while True:
         node = inpart.read(20)
         fnode = inpart.read(20)
         if len(node) < 20 or len(fnode) < 20:
-            op.ui.debug('received incomplete .hgtags fnodes data, ignoring\n')
+            op.ui.debug('ignoring incomplete received .hgtags fnodes data\n')
             break
         cache.setfnode(node, fnode)
         count += 1