Patchwork [2,of,8,py3] dagparser: fix variable name in error message

login
register
mail settings
Submitter Yuya Nishihara
Date Sept. 16, 2017, 2:31 p.m.
Message ID <9781ea13183a7a64d4b5.1505572286@mimosa>
Download mbox | patch
Permalink /patch/23937/
State Accepted
Headers show

Comments

Yuya Nishihara - Sept. 16, 2017, 2:31 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1504419774 -32400
#      Sun Sep 03 15:22:54 2017 +0900
# Node ID 9781ea13183a7a64d4b5fdfe13c07244273c0e56
# Parent  3592f41c8c14cee0c2ee103da254193a486bca35
dagparser: fix variable name in error message

There's no variable named 'type'.

Patch

diff --git a/mercurial/dagparser.py b/mercurial/dagparser.py
--- a/mercurial/dagparser.py
+++ b/mercurial/dagparser.py
@@ -368,7 +368,7 @@  def dagtextlines(events,
                     yield '\n'
                 else:
                     raise error.Abort(_("invalid event type in dag: %s")
-                                     % str((type, data)))
+                                      % str((kind, data)))
         if run:
             yield '+' + str(run)