effetflag: move the flag back with the test of the creation logic
Previous changeset was published by mistake.
--- a/hgext3rd/evolve/obshistory.py Fri May 19 20:21:10 2017 +0200
+++ b/hgext3rd/evolve/obshistory.py Fri May 19 20:49:20 2017 +0200
@@ -23,12 +23,6 @@
exthelper,
)
-# logic around storing and using effect flags
-DESCCHANGED = 1 << 0 # action changed the description
-METACHANGED = 1 << 1 # action change the meta (user, date, branch, etc...)
-PARENTCHANGED = 1 << 2 # action change the parent
-DIFFCHANGED = 1 << 3 # action change diff introduced by the changeset
-
eh = exthelper.exthelper()
@eh.command(
@@ -382,6 +376,12 @@
fm.plain("\n")
+# logic around storing and using effect flags
+DESCCHANGED = 1 << 0 # action changed the description
+METACHANGED = 1 << 1 # action change the meta (user, date, branch, etc...)
+PARENTCHANGED = 1 << 2 # action change the parent
+DIFFCHANGED = 1 << 3 # action change diff introduced by the changeset
+
def geteffectflag(relation):
"""compute the effect flag by comparing the source and destination"""
effects = 0