changeset 12:915cf73f6afa

Report branch in error message.
author Sjoerd Mullender <sjoerd@acm.org>
date Tue, 31 Mar 2015 09:56:52 +0200 (2015-03-31)
parents ff07accd0692
children be056ef66d2a
files check_whitespace.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/check_whitespace.py	Fri Mar 20 15:26:10 2015 +0100
+++ b/check_whitespace.py	Tue Mar 31 09:56:52 2015 +0200
@@ -118,7 +118,7 @@
             # no descendants for this revision, check diff with saved parents
             for p in branches[branch]:
                 for filename, linenum, msg in trailing_whitespace(repo[rev].diff(p)):
-                    ui.write('%s, line %d: %s added\n' % (filename, linenum, msg))
+                    ui.write('%s, line %d, branch %s: %s added\n' % (filename, linenum, branch, msg))
                     added = True
     if added:
         # save the commit message so we don't need to retype it