changeset 4439:2eafdca7ba4b

evolve: preserve compatibility for hg < 4.8 versions This patch make sure evolve don't break if user using a version of hg before this 7694b685bb10 patch on hg-committed.
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Wed, 13 Mar 2019 17:32:14 +0530
parents a6bdb02a1902
children d48a480af9ab
files hgext3rd/evolve/compat.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/compat.py	Sat Mar 09 19:25:34 2019 +0530
+++ b/hgext3rd/evolve/compat.py	Wed Mar 13 17:32:14 2019 +0530
@@ -420,7 +420,9 @@
 
     return copy, movewithdir, diverge, renamedelete, dirmove
 
-if util.safehasattr(copies, '_fullcopytracing'):
+# hg <= 4.9 compat (7694b685bb10)
+fixupstreamed = util.safehasattr(scmutil, '_movedirstate')
+if not fixupstreamed:
     copies._fullcopytracing = fixedcopytracing
 
 if not util.safehasattr(obsutil, "_succs"):