evolve: preserve compatibility for hg < 4.8 versions
authorSushil khanchi <sushilkhanchi97@gmail.com>
Wed, 13 Mar 2019 17:32:14 +0530
changeset 4439 2eafdca7ba4b
parent 4438 a6bdb02a1902
child 4440 d48a480af9ab
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.
hgext3rd/evolve/compat.py
--- 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"):