effetflag: move the flag back with the test of the creation logic
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 19 May 2017 20:49:20 +0200
changeset 2454 400dbec0849c
parent 2453 ad08aedf25ac
child 2455 d93a50a9abf5
effetflag: move the flag back with the test of the creation logic Previous changeset was published by mistake.
hgext3rd/evolve/obshistory.py
--- 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