changeset 2454:400dbec0849c

effetflag: move the flag back with the test of the creation logic Previous changeset was published by mistake.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 19 May 2017 20:49:20 +0200
parents ad08aedf25ac
children d93a50a9abf5
files hgext3rd/evolve/obshistory.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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