effectflag: simplify meta data change testing
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 19 May 2017 20:52:09 +0200
changeset 2457 1ea3065cc570
parent 2456 63be7982d593
child 2461 3c9a74763c20
effectflag: simplify meta data change testing Let us just do one larger test. G: changed hgext3rd/evolve/obshistory.py
hgext3rd/evolve/obshistory.py
--- a/hgext3rd/evolve/obshistory.py	Fri May 19 20:50:49 2017 +0200
+++ b/hgext3rd/evolve/obshistory.py	Fri May 19 20:52:09 2017 +0200
@@ -399,13 +399,9 @@
             effects |= DESCCHANGED
 
         # Check if known meta has changed
-        if changectx.user() != source.user():
-            effects |= METACHANGED
-
-        if changectx.date() != source.date():
-            effects |= METACHANGED
-
-        if changectx.branch() != source.branch():
+        if (changectx.user() != source.user()
+                or changectx.date() != source.date()
+                or changectx.branch() != source.branch()):
             effects |= METACHANGED
 
         # Check if at least one of the parent has changes