From 1e75b5540ae1080132ed98db2afad260663da71f Mon Sep 17 00:00:00 2001
From: Maxi Schulz <maximilian.schulz@hs-hannover.de>
Date: Tue, 11 Nov 2014 10:07:54 +0100
Subject: [PATCH] [TASK] Inspect of updates now only colors changed attributes

---
 hshetl/entities.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/hshetl/entities.py b/hshetl/entities.py
index 8518306..c330310 100644
--- a/hshetl/entities.py
+++ b/hshetl/entities.py
@@ -627,7 +627,10 @@ class EntityList(list):
                 if operation == OPERATION_INSERT:
                     value = u'\033[32m' + source_value + u'\033[0m'
                 elif operation == OPERATION_UPDATE:
-                    value = u'\033[31m' + target_value + u'\033[0m' + u'\n' + u'\033[32m' + source_value + u'\033[0m'
+                    if target_value != source_value:
+                        value = u'\033[31m' + target_value + u'\033[0m' + u'\n' + u'\033[32m' + source_value + u'\033[0m'
+                    else:
+                        value = source_value
                 elif operation == OPERATION_DELETE:
                     value = u'\033[31m' + target_value + u'\033[0m'
                 else:
-- 
GitLab